5222 Commits

Author SHA1 Message Date
23rd 6e89ec538c [poll-view] Added distinct green checkbox icon for poll option replies. 2026-03-28 10:29:09 +03:00
23rd c992e883b5 [poll-view] Added toast when voting in hidden-results poll. 2026-03-28 10:29:09 +03:00
23rd 39ce6a1a0a [poll-view] Added author ability to view results without voting. 2026-03-28 10:29:09 +03:00
23rd a91c2cd0a2 [poll-view] Added countdown timer text to poll footer. 2026-03-28 10:29:09 +03:00
23rd 7a586e680c [poll-view] Fixed cropped attached photos in views from shared polls.
Poll::countTopMediaHeight() used width() which returns 0 during
first countOptimalSize()/countCurrentSize() call (Object sets _width
only after these return).
This made photo height = max(1, negative) = 1px.
2026-03-28 10:29:09 +03:00
23rd 54da1bf21b Added ability to copy text from poll answers. 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 07ca74ca0b Added workaround to always close media preview on window resize. 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 7bb2f590c7 [poll-view] Added small video play icon overlay to poll answers. 2026-03-28 10:29:08 +03:00
23rd ee58a97156 Fixed possible crash on quit application when media preview is opened. 2026-03-28 10:29:08 +03:00
23rd 41aabe486b [poll-view] Fixed attached video rounding and aspect ratio. 2026-03-28 10:29:08 +03:00
23rd 5515a662b8 [poll-create] Added ability to upload video. 2026-03-28 10:29:08 +03:00
23rd 66c450fc0d [poll-create] Added document file preview overlay. 2026-03-28 10:29:08 +03:00
23rd 7e7af4118d Limited media preview overlay to body widget below title bar. 2026-03-28 10:29:08 +03:00
23rd 5fec51d0c6 [poll-view] Fixed attached photo rounding and aspect ratio. 2026-03-28 10:29:08 +03:00
23rd 47e1d56033 [poll-create] Added support of preview to attached photo. 2026-03-28 10:29:08 +03:00
23rd ad38e06555 [poll-view] Added support of document files as attached media. 2026-03-28 10:29:08 +03:00
23rd 471eaf7498 [poll-view] Fixed click handler for documents in solution. 2026-03-28 10:29:08 +03:00
23rd b0227e1bf6 [poll-view] Added ability to select text of solution. 2026-03-28 10:29:08 +03:00
23rd d58ec07343 [poll-view] Slightly improved style.
Fixed #27026.
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 2411009071 [poll-view] Added preview to stickers in answers. 2026-03-28 10:29:08 +03:00
23rd 646f8c32f9 Added util to fill menu for document preview from poll answer. 2026-03-28 10:29:08 +03:00
23rd 49e75e1ab0 Slightly refactored userpics stripe to deduplicate userpic preparation. 2026-03-28 10:29:08 +03:00
23rd c24a58672b Slightly refactored userpics stripe to deduplicate userpic dirty checks. 2026-03-28 10:29:08 +03:00
23rd 0328de897c [poll-view] Added explanation block. 2026-03-28 10:29:08 +03:00
23rd 48de6c495e Moved out all poll-related style entries to td_ui. 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 dc3d27993b [poll-view] Added initial ability to open photo from answers. 2026-03-28 10:29:07 +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 e613a89d02 [poll-create] Added poll option toggle to disable revoting. 2026-03-28 10:29:07 +03:00
23rd 3c3683a41e [poll-view] Added support of shuffled answers. 2026-03-28 10:29:07 +03:00
John Preston f73793ce8a Add simple animation for AI Tools button. 2026-03-27 22:25:36 +07:00
John Preston 353c95adae Support box->setTitle(v::text::data, context). 2026-03-27 12:54:56 +07:00
People-11 b185900b4f feat: improve message shot
Add Show Spoiler
Fix photo not showing date in shot
Fix show date in media group
Hide inapplicable options

Co-authored-by: AlexeyZavar <sltkval1@gmail.com>
2026-03-26 19:05:01 +03:00
John Preston b55d80212c Update API scheme on layer 224. 2026-03-26 22:50:39 +07:00
Ivan Romanov 3fc8796bda feat: option to hide premium statuses
Option allows to hide premium statuses in chat list, in group chats and above contact chat.
2026-03-26 17:55:33 +03:00
Bush2021 34c9b24123 fix: AyuForward for private chats 2026-03-26 17:07:15 +03:00
John Preston 1fa219c1cd Make working send-from-ai-tools button. 2026-03-26 14:13:01 +07:00
John Preston 3a5b2c6ecf Add a Create Bot button to link preview. 2026-03-25 18:24:41 +07:00
John Preston b6b6e18896 Don't break old settings reading. 2026-03-25 13:08:50 +07:00
John Preston d455d6ee32 Improve managed bot creation. 2026-03-25 13:08:50 +07:00
John Preston 4069e4412c Initial attempt to add ai controls. 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 8224e6ece1 Use menu items with checks for spoiler / quality. 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 5a39484407 Better post views tracking. 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