Commit Graph

2872 Commits

Author SHA1 Message Date
John Preston 147a49c64d Show star price on rich editor send button 2026-07-10 14:04:31 +04:00
John Preston fd9bcb2489 Fix location sends replying to ephemeral messages 2026-07-10 14:04:31 +04:00
John Preston 44fdd77ba6 Skip payment and restrictions for ephemeral sends 2026-07-10 14:04:31 +04:00
23rd 8d1af49a57 Delegated monoforum userpic unique key to the broadcast. 2026-07-10 14:04:31 +04:00
John Preston e5a390d58e Hide community bot chats when community is collapsed 2026-07-10 14:04:30 +04:00
John Preston 7ad96f25df Support bots as community linked peers 2026-07-10 14:04:30 +04:00
John Preston 3e003fb090 Support user.linked_community_id from layer 229 2026-07-10 14:04:30 +04:00
John Preston af6c9f3d8a Refresh community lists when a member is left or joined 2026-07-10 14:04:28 +04:00
23rd 112913cd53 Supported ephemeral media replies to bots. 2026-07-10 14:04:28 +04:00
23rd fda9f63787 Routed ephemeral sends into active forum topics. 2026-07-10 14:04:28 +04:00
23rd 7bcd14a2b9 Restricted replying to own ephemeral messages. 2026-07-10 14:04:28 +04:00
23rd c511e828b3 Added ephemeral messages data component with receive and send support. 2026-07-10 14:04:28 +04:00
John Preston 1cb8265548 Handle community dialog in file reference accumulator
Editor's new push(MTPDialog) overload matched only dialog and folder; layer 228 adds the dialogCommunity constructor, so cover it too.
2026-07-10 14:04:28 +04:00
John Preston 36958a6782 Split community chats by can_view_history flag 2026-07-10 14:04:27 +04:00
John Preston 205613d629 Adapt community parsing to collapsed_in_dialogs flag
The community schema turned collapsed_in_dialogs into a plain flag bit, trustworthy except on min updates.
2026-07-10 14:04:27 +04:00
John Preston 9c0d104b32 Support notify settings in communities. 2026-07-10 14:04:27 +04:00
John Preston eef22271e0 Support pin/folder actions for community. 2026-07-10 14:04:27 +04:00
John Preston a0fd43642a Update API scheme on layer 228. 2026-07-10 14:04:27 +04:00
John Preston 5ecffe5c5c Generalize the "joined community" service message. 2026-07-10 14:04:27 +04:00
John Preston c1c79916dc Show a card for the group-added-to-community service message. 2026-07-10 14:04:27 +04:00
John Preston 8afb2cfa6a Notify the community info page of member-chat updates directly. 2026-07-10 14:04:26 +04:00
John Preston 32ab22fc90 Show community chats as dialogs rows on the info page. 2026-07-10 14:04:26 +04:00
John Preston 3b44f5c193 Mark hidden chats with a userpic badge in community view. 2026-07-10 14:04:26 +04:00
John Preston cc5a3abbcc Show up to 20 chats and a more-chats suffix on community row. 2026-07-10 14:04:26 +04:00
John Preston c16e695531 Load full community info when shown or opened in dialogs. 2026-07-10 14:04:26 +04:00
John Preston 24c3a4b6c0 Open community chats inline in the dialogs list. 2026-07-10 14:04:26 +04:00
John Preston 628b502228 Add community photo editing in the manage box. 2026-07-10 14:04:26 +04:00
John Preston 31cd148e87 Group community chats into one chat list row. 2026-07-10 14:04:26 +04:00
John Preston 4980f0068a Show becoming community admin box. 2026-07-10 14:04:26 +04:00
John Preston 4b23f93fcf Try showing communities in the chat list. 2026-07-10 14:04:26 +04:00
John Preston 57ec2eb124 Add managing community admin rights. 2026-07-10 14:04:26 +04:00
John Preston 5d84fa0e11 Add Data::CommunityInfo, parse communityFull. 2026-07-10 14:04:26 +04:00
John Preston da3cc6156a Update API scheme to layer 228. 2026-07-10 14:04:26 +04:00
23rd df001bd674 Added loading of chat theme wallpapers without download progress. 2026-07-10 14:04:25 +04:00
23rd 5115314726 Added applying of chat theme from custom themes list. 2026-07-10 14:04:25 +04:00
23rd 50659e904a Added applying of theme links without desktop format. 2026-07-10 14:04:25 +04:00
23rd 2d8fa7def0 Added server sync of applied chat theme installation. 2026-07-10 14:04:25 +04:00
23rd 996fc9231c Added refresh of applied chat theme on themes list reload. 2026-07-10 14:04:25 +04:00
John Preston 402cb0e668 Fix crash when removing folders with pinned chats.
ChatFilters::applyRemove() emptied the filter in the list and only then
detached its chats. Unpinning a chat re-caches its siblings' pinned
indices, which runs Session::refreshChatListEntry(); seeing the filter
still listed but emptied, it re-entered removeFromChatList() ->
setChatPinned() -> PinnedList::setPinned() on the same pinned list while
its re-cache loop iterated with a cached size, reading past the end of
the vector. This aborted on closing the Folders editor after removing
two or more folders that had pinned chats.

Detach the filter from the list before applyChange() tears down its
chats, so the re-entrant refresh no longer touches it. Also harden the
setPinned() re-cache loop to re-check the container size each iteration
as defense in depth.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 17:49:07 +04:00
John Preston ec7e0566a7 Improve rich messages serialization. 2026-07-02 17:48:58 +04:00
John Preston 9dc4b8c8b8 Support rich messages drafts. 2026-07-02 17:48:57 +04:00
John Preston c8ef31ae7f Fix rich pages in scheduled / shorcuts sending. 2026-06-23 11:28:52 +04:00
23rd a74ee601c1 Added initial support of swipe-next-channel. 2026-06-22 11:51:49 +03:00
23rd 5d52a283d4 Added experimental option to keep unmuted unread dialogs on top. 2026-06-22 11:51:49 +03:00
John Preston 9cca0059b5 Fix order in auctions list hashing. 2026-06-15 21:54:54 +04:00
Ilya Fedin c486314f83 Avoid full Telegram target rebuild on version change 2026-06-15 17:05:51 +04:00
John Preston 8b8b3ebc09 Support server-provided limits for rich messages. 2026-06-09 14:28:11 +04:00
John Preston 4404d44da0 Support starting typing into IV editor, including IME. 2026-06-09 14:28:11 +04:00
John Preston ea438aeb85 Correctly host rich message in the item. 2026-06-09 14:28:11 +04:00
John Preston a9a21140c3 Unify MTP page parsing. 2026-06-09 14:28:10 +04:00