Commit Graph

22574 Commits

Author SHA1 Message Date
23rd 42eaddfaba Added geolocation support to poll answer media data layer. 2026-03-28 10:29:13 +03:00
23rd 5f60eb53ff Updated tg_owt to fix PipeWire 1.5.81+ compatibility.
Required for Flathub builds on newer 50 runtimes.
2026-03-28 10:29:13 +03:00
23rd b01e0b77fe Added support of unread poll votes to corner button from history widget. 2026-03-28 10:29:12 +03:00
23rd d1406f3f17 Added support of empty state to poll list widget. 2026-03-28 10:29:12 +03:00
23rd 7942a24c0c [poll-shared] Added initial search support. 2026-03-28 10:29:12 +03:00
23rd 5a2c0b1a19 [view-poll] Improved color of attach button in add-option. 2026-03-28 10:29:12 +03:00
23rd 36373574cf [view-poll] Improved color of emoji button in add-option. 2026-03-28 10:29:12 +03:00
23rd 8585e8cb0c Moved out AddPollOptionWidget from header. 2026-03-28 10:29:12 +03:00
23rd 9fe4419269 [view-poll] Improved color of placeholder for input field in add-option. 2026-03-28 10:29:12 +03:00
23rd 8b37591882 Added ability to delete added poll answer. 2026-03-28 10:29:12 +03:00
23rd 7a5eefcc70 Deduplicated poll overlay setup into ShowAddPollOptionOverlay. 2026-03-28 10:29:12 +03:00
23rd bb6a008309 Extracted ElementOverlayHost to deduplicate overlay management. 2026-03-28 10:29:12 +03:00
23rd 77529fb698 [view-poll] Connected emoji panel with tabbed selector to add-option. 2026-03-28 10:29:12 +03:00
23rd edbdbef2eb Replaced old upload pipeline in create_poll_box with extracted pipeline. 2026-03-28 10:29:12 +03:00
23rd 0d93cb580d Extracted poll media upload pipeline into separated files. 2026-03-28 10:29:12 +03:00
23rd 4f446e0102 [view-poll] Added emoji and attach button placeholders to add-option. 2026-03-28 10:29:12 +03:00
23rd 969108381a [view-poll] Added emoji and attach button placeholders to add-option. 2026-03-28 10:29:12 +03:00
23rd 53dc6d45b9 [poll-view] Added initial inline add-option overlay with input field. 2026-03-28 10:29:12 +03:00
23rd db8878932f Replaced badge-based dialogs icons with standalone colored icons. 2026-03-28 10:29:12 +03:00
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 58a2c0f834 [poll-create] Fixed display of emoji button. 2026-03-28 10:29:09 +03:00
23rd bb4d4e239f [poll-create] Added reorder answers support. 2026-03-28 10:29:09 +03:00
23rd ab1af9371e Added poll vote badge to dialogs. 2026-03-28 10:29:09 +03:00
23rd 73baa8e679 [poll-create] Added support of quiz mode with multiple correct answers. 2026-03-28 10:29:09 +03:00
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 b28b46bdc9 [poll-create] Added poll option toggle to set deadline. 2026-03-28 10:29:09 +03:00
23rd f055478b6e Moved out ttl icon from dialogs row to separated file. 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 9f887dda4b Slightly improved phrase for entry point to photo editor from menu item. 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 89bee2dd51 [poll-create] Added nice overlay on hover for attach buttons. 2026-03-28 10:29:08 +03:00
23rd 26b437fcd6 [poll-create] Added support of drag'n'drop for document files. 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 64c172f590 [poll-create] Added support of preview for attached sticker. 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