Commit Graph

2717 Commits

Author SHA1 Message Date
23rd cbf8f791bb [poll-view] Added poll option author info to context menu. 2026-03-28 10:29:09 +03:00
23rd 27e04f3e0c Added creator flag to PollData. 2026-03-28 10:29:09 +03:00
23rd 2b89fb9d40 [poll-shared] Added Polls section.
- Introduced SharedMediaType::Poll and registered poll messages
as shared media in data_media_types.

- Added Data::PollMessagesViewer — a producer that loaded poll
message slices for a given history/topic/monoforum peer.
(data_poll_messages.cpp/h)

- Implemented Info::Polls::ListWidget and ListMemento — a new content
widget that rendered poll messages using HistoryView::ListWidget
with a custom chat theme, similar to existing shared media sections.

- Connected the new section into info_memento, info_controller,
info_media_buttons, and info_media_widget so it appeared as a button
in the Shared Media panel.
2026-03-28 10:29:08 +03:00
23rd 554ba411f6 [poll-view] Added initial support of reply to poll answers. 2026-03-28 10:29:08 +03:00
23rd 8e746dcfbd Replaced MTPInputMedia with domain-level PollMedia in poll data structs. 2026-03-28 10:29:08 +03:00
23rd bbdc6abea8 Added recent voters to media view. 2026-03-28 10:29:08 +03:00
23rd 39b3f0a386 [poll-view] Added initial support of attached photo and description. 2026-03-28 10:29:08 +03:00
23rd c32fbf918f [poll-view] Added initial display of photo and stickers. 2026-03-28 10:29:07 +03:00
23rd 8145b0b96e [poll-create] Added files support for poll media. 2026-03-28 10:29:07 +03:00
23rd 546c786ed3 [poll-create] Added poll option toggle to extend poll with new answers. 2026-03-28 10:29:07 +03:00
23rd e613a89d02 [poll-create] Added poll option toggle to disable revoting. 2026-03-28 10:29:07 +03:00
23rd 945373eb5b [poll-create] Added poll option toggle for shuffled options. 2026-03-28 10:29:07 +03:00
John Preston 3a5b2c6ecf Add a Create Bot button to link preview. 2026-03-25 18:24:41 +07:00
23rd 90eda7c03a Fixed build. 2026-03-25 13:08:50 +07:00
John Preston 358a9f87a1 Initial support for managed bot creation. 2026-03-25 13:08:50 +07:00
John Preston 68dd72f4fe Update API scheme on layer 224. 2026-03-25 13:08:49 +07:00
John Preston 4fcfbed7d2 Allow filtering resale gifts by-stars-only. 2026-03-25 13:08:49 +07:00
John Preston 9f57a82c75 Update API scheme to layer 224. 2026-03-25 13:08:49 +07:00
23rd 73cbef5b82 Fixed stale pinned Saved Messages sublists on clear that subsection. 2026-03-15 08:05:54 +03:00
23rd 9275b45ab8 Added initial implementation of draw-to-reply. 2026-03-12 12:59:50 +04:00
John Preston dbb7e34950 Fix editing of checklist in Saved Messages. 2026-03-10 15:01:38 +04:00
Ilya Fedin 59ecfd67f0 Add location tracking to PhotoData
Add persistent file location storage for downloaded photos,
similar to DocumentData. This allows the app to remember
where a photo was saved and reuse that path.

Co-Authored-By: GLM-5 <contact@zhipuai.cn>
2026-03-10 12:40:17 +04:00
Ilya Fedin c2f64700c1 Move external video player option handling to SessionController::openDocument 2026-03-10 12:40:17 +04:00
Ilya Fedin f6ac2c5aa9 Revert "Don't stream videos when external player is used"
This reverts commit b0ce88395f.
2026-03-10 12:40:17 +04:00
Ilya Fedin ff08ab1023 Revert "Avoid using streaming loader with external video player"
This reverts commit d9ddb12500.
2026-03-10 12:40:17 +04:00
John Preston 7f71e9dd52 Fix build with Xcode. 2026-03-09 21:23:26 +04:00
John Preston 8eab8af02d Don't always lower members count when banning.
Fixes #30371.
2026-03-06 22:03:20 +04:00
John Preston 5507e9c00d Simplify file sending, always attach a caption. 2026-03-06 21:08:35 +04:00
John Preston a4c4ea129c Always process item destroy in topics. 2026-03-06 14:08:37 +04:00
futpib dc6b9dda4d Use faster containers for bulk-populated custom emoji maps
Replace base::flat_map (sorted vector with O(n) insertion) with
std::unordered_map for CustomEmojiManager::_instances and std::map
for EmojiListWidget::_customEmoji. These maps accumulate ~8000
entries during startup with unsorted keys, causing O(n²) total
insertion cost. This change reduces refreshCustom() from ~3s to
~50ms (57x speedup).
2026-03-05 15:20:36 +04:00
Ilya Fedin d9ddb12500 Avoid using streaming loader with external video player
Streaming loader is unnecessary slow for this use-case

Co-authored-by: Codex <codex@openai.com>
2026-03-04 16:32:47 +04:00
Ilya Fedin d52d82f7e6 Fix GCC 15 -Wrange-loop-construct 2026-03-03 12:16:32 +04:00
Ilya Fedin ca0c9ab659 Fix GCC 15 -Wdangling-pointer 2026-03-03 12:16:32 +04:00
John Preston 221d79283d Admins don't edit tags in legacy groups. 2026-03-02 15:19:58 +04:00
John Preston a58047e88a Fix some regressions in accessibility commit. 2026-02-28 19:07:12 +04:00
John Preston 20f79c5ae5 Confirm enable sharing request sending. 2026-02-28 19:07:11 +04:00
John Preston c9ac77ccbf Use separate phrase for singular Edit Tag. 2026-02-28 19:07:11 +04:00
John Preston 90129c10d8 Initial formatted date support. 2026-02-28 19:07:10 +04:00
John Preston 2aae67cb81 Show nice gift burned error everywhere. 2026-02-28 19:07:10 +04:00
John Preston c39c0b597c Nice tag badge click handler in groups. 2026-02-28 19:07:10 +04:00
John Preston 0f6a5480df Implement nice member/admin edit in groups. 2026-02-28 19:07:10 +04:00
John Preston e1a2fd2481 Start nice redesigned group tags display. 2026-02-28 19:07:10 +04:00
John Preston f60dfaf14a Always use fresh admin rank, remembered user rank. 2026-02-28 19:07:09 +04:00
John Preston 4c2d72d00b Support no-topics recipient state in bot-forums. 2026-02-28 19:07:09 +04:00
John Preston e9fced5c2c Nice design of admin/member tags. 2026-02-28 19:07:09 +04:00
John Preston e85bb2085c Update API scheme on layer 223. 2026-02-28 19:07:08 +04:00
John Preston aa94491ad7 Allow editing my rank / other ranks. 2026-02-28 19:07:08 +04:00
John Preston 7969795a01 Show custom ranks, allow toggling on. 2026-02-28 19:07:08 +04:00
John Preston 62d32a1bdf Update API scheme on layer 223. 2026-02-28 19:07:08 +04:00
John Preston 4e9c0ea3a5 Implement private chat noforward following. 2026-02-28 19:07:08 +04:00