owpengram-server/internal/app/channels
Astra 5f63240f2d channels: give getParticipants a stable Hash when read-model versions are missing
cachedParticipants returned a participant page with Hash=0 whenever the
channel_base / channel_participants rows in read_model_versions were never
seeded for a channel (e.g. groups created via messages.createChat). With
Hash=0 the RPC layer can never answer channels.channelParticipantsNotModified,
so a client that polls the member list re-fetches it in a tight loop forever.

Fall back to a deterministic content hash derived from the page itself
(channel id, page key, count, and each member's id/role/status/rank) so an
unchanged member list yields an identical non-zero Hash and the client
converges. The read-model-backed path is unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 12:26:30 +01:00
..
active_ids_cache.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
bot_member_ids_cache.go feat: sync Bot API gateway support 2026-07-09 13:49:24 +08:00
bot_policy.go feat: sync Bot API gateway support 2026-07-09 13:49:24 +08:00
doc.go Initial open source release 2026-06-04 01:37:39 +08:00
media_count_cache.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
music_filter_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
participants_cache.go channels: give getParticipants a stable Hash when read-model versions are missing 2026-09-09 12:26:30 +01:00
read_model_cache.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
resolve_cache.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
service.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
service_groupcall.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
service_suggested_post.go fix: sync monoforum suggested post flow 2026-07-22 16:08:44 +08:00
service_test.go channels: give getParticipants a stable Hash when read-model versions are missing 2026-09-09 12:26:30 +01:00