owpengram-server/internal/store/memory
Astra df15c3ffb3 channels: force pre-history visible when a group gets a public username
New supergroups are created with "chat history for new members" hidden (the
client sets this right after creation, matching official Telegram). The
official server then forces it back to visible when the group is made public;
owpengram's UpdateUsername left the flag alone, leaving public groups in a
state where non-members (and post-join members) see no history at all.

UpdateUsername now clears pre_history_hidden whenever a non-empty username is
assigned, in the same transaction, with a matching admin-log event. Removing
the username leaves the flag untouched, so the creator can hide history again
once the group is private.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 12:51:23 +01:00
..
ai.go feat: sync AI compose and ChatBot features 2026-07-03 19:43:20 +08:00
album_group.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
album_group_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
auth.go fix: sync remote authorization revoke logout 2026-07-24 21:39:00 +08:00
auth_delivery_report.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
auth_test.go feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
authkey_session_layer.go feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
authkey_session_layer_test.go feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
bootstrap_update_job.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
bootstrap_update_job_test.go feat: defer login bootstrap updates 2026-07-05 03:28:19 +08:00
bot.go feat: sync bot setup and webhook diagnostics 2026-07-22 00:51:52 +08:00
bot_verification.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
bot_verification_test.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
botapi_update.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
botapi_update_test.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
broadcast.go added ability to broadcast 2026-08-06 15:22:36 +03:00
business.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_boosts.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_core.go fix(usernames): sync index active collectible aliases 2026-07-28 16:22:34 +08:00
channel_delete_monoforum_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_dialogs.go fix(channels): sync preserve locally cleared dialogs 2026-07-29 16:19:04 +08:00
channel_groupcall.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_helpers.go forum: fix reply_to_top_id for replies inside a forum 2026-09-09 11:15:56 +01:00
channel_invites.go Merge remote-tracking branch 'upstream/main' into merge-gramsrv-2965f5d 2026-07-20 23:43:51 +03:00
channel_linked_guest_authorization_test.go fix: sync protocol and discussion stability fixes 2026-07-12 07:05:02 +08:00
channel_members.go fix(channels): sync preserve locally cleared dialogs 2026-07-29 16:19:04 +08:00
channel_message_delete.go fix(channels): sync preserve locally cleared dialogs 2026-07-29 16:19:04 +08:00
channel_message_edit.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
channel_message_helpers.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_message_history.go fix(channels): sync monoforum suggested forwards and reactions 2026-07-30 16:05:34 +08:00
channel_message_send.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_message_settings.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_message_views.go fix: sync authorize monoforum message views 2026-07-30 20:09:47 +08:00
channel_monoforum.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_monoforum_send_test.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_monoforum_test.go fix: sync harden channel reads and suggested approvals 2026-07-28 16:22:33 +08:00
channel_poll_fanout_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_polls.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_reactions.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_read.go fix: sync harden channel reads and suggested approvals 2026-07-28 16:22:33 +08:00
channel_read_clamp_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel_recovery_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
channel_send_idempotency_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
channel_settings.go channels: force pre-history visible when a group gets a public username 2026-09-09 12:51:23 +01:00
channel_store.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_suggested_post.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_suggested_post_test.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
channel_test.go fix(channels): sync preserve locally cleared dialogs 2026-07-29 16:19:04 +08:00
channel_topic_read.go forum: let non-members browse a public forum's topic list 2026-09-09 11:15:56 +01:00
channel_topics.go forum: let non-members browse a public forum's topic list 2026-09-09 11:15:56 +01:00
channel_update_retention_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
channel_updates.go fix: sync public channel preview updates 2026-07-24 14:50:17 +08:00
channel_webpage_resolve_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
chatlists.go feat: sync chatlist sharing support 2026-07-06 21:06:33 +08:00
client_telemetry.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
client_telemetry_test.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
code_cas.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
code_cas_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
code_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
collectible_username.go fix(usernames): sync index active collectible aliases 2026-07-28 16:22:34 +08:00
collectible_username_test.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
community.go fix(usernames): sync index active collectible aliases 2026-07-28 16:22:34 +08:00
community_test.go feat: sync community aggregates 2026-07-20 16:46:02 +08:00
contacts.go fix: sync contact phone privacy disclosure 2026-07-24 11:56:58 +08:00
dialog_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
dialogs.go feat: sync monoforum and collectible emoji status 2026-07-19 20:37:10 +08:00
doc.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
ephemeral.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
ephemeral_report.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
ephemeral_test.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
groupcall.go feat: sync group call livestream support 2026-07-06 14:32:45 +08:00
groupcall_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
help.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
helpers.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
langpack.go feat: sync langpack and auth updates 2026-07-18 00:07:41 +08:00
login_code.go feat: sync langpack and auth updates 2026-07-18 00:07:41 +08:00
login_code_delivery.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
login_code_delivery_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
login_code_invalidate_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
login_code_state_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
media_search.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
message_allocators.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
message_delete.go fix(messages): sync preserve private dialogs after clearing history 2026-07-29 13:51:02 +08:00
message_edit.go feat: sync rich text message support 2026-07-04 21:15:35 +08:00
message_forward.go fix: sync support private chat content protection 2026-07-28 16:22:33 +08:00
message_helpers.go fix: sync support private chat content protection 2026-07-28 16:22:33 +08:00
message_history.go fix(messages): sync preserve private dialogs after clearing history 2026-07-29 13:51:02 +08:00
message_idempotency_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
message_markup_test.go feat: sync bot keyboards and callbacks 2026-07-19 20:38:48 +08:00
message_no_forwards.go fix: sync support private chat content protection 2026-07-28 16:22:33 +08:00
message_no_forwards_test.go fix: sync support private chat content protection 2026-07-28 16:22:33 +08:00
message_pin.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
message_polls.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
message_reactions.go feat(messages): sync saved message tags 2026-07-25 19:23:19 +08:00
message_read.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
message_saved_reactions.go feat(messages): sync saved message tags 2026-07-25 19:23:19 +08:00
message_saved_reactions_test.go feat(messages): sync saved message tags 2026-07-25 19:23:19 +08:00
message_send.go feat: sync bot keyboards and callbacks 2026-07-19 20:38:48 +08:00
message_store.go fix: sync support private chat content protection 2026-07-28 16:22:33 +08:00
message_test.go fix(messages): sync preserve private dialogs after clearing history 2026-07-29 13:51:02 +08:00
message_webpage_resolve_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
moderation.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
moderation_case_test.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
moderation_flags_test.go fix(admin): close PR review blockers 2026-07-23 13:29:04 +08:00
moderation_test.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
passkey.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
password.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
phone_change.go fix for phone generation on email signup 2026-07-14 00:30:52 +03:00
poll.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
privacy.go business: add privacy-aware user projection 2026-06-14 00:19:59 +08:00
saved_dialog.go fix(messages): sync preserve private dialogs after clearing history 2026-07-29 13:51:02 +08:00
scoped_code_state_test.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
secretchat.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
story.go fix: sync contact phone privacy disclosure 2026-07-24 11:56:58 +08:00
story_test.go fix: sync contact phone privacy disclosure 2026-07-24 11:56:58 +08:00
telegram_login.go feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
telegram_login_test.go feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
themes.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
themes_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
update_state_delivery_test.go feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
updates.go fix: sync non-PTS privacy updates 2026-07-24 11:57:00 +08:00
users.go added full gifts support 2026-08-07 10:13:11 +03:00
users_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
verification.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
verification_test.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00