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
23rd
b8888025ec
[poll-create] Added cancel support to attach button while uploading.
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
ecff8e3670
[poll-create] Added ability to upload document files.
2026-03-28 10:29:08 +03:00
23rd
d5ce6fff77
Added dynamic thumbnail util for document files.
2026-03-28 10:29:08 +03:00
23rd
b311c33473
Added filename-only overload for DocumentGenericPreview::Create.
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
83de6c640c
Added menu item for vote retracting to media view.
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
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
a98b2f4a39
Added button for poll voting to media view.
2026-03-28 10:29:08 +03:00