53 Commits

Author SHA1 Message Date
23rd 365cd728b8 Fixed display of button for new poll in shared polls. 2026-04-14 09:16:15 +03:00
John Preston 98f342227f Remove reveal animation on draft replacement. 2026-04-07 22:26:41 +07:00
23rd 494833236f Defaulted RoundButton text transform to no-transform. 2026-04-06 16:58:16 +03:00
23rd 7c26a251cf Added text transform to RoundButton as mandatory argument. 2026-04-06 16:58:15 +03:00
23rd 74f2c49284 Slightly optimized include of polls.style. 2026-03-30 10:19:14 +03:00
23rd 82ffe0f91f [poll-shared] Added floating button for new poll. 2026-03-28 10:29:13 +03:00
23rd f992678e3a [poll-shared] Added ability to select polls. 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 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 b06573b5c9 Moved out poll-related styles from boxes.style to polls.style. 2026-03-28 10:29:08 +03:00
John Preston b622ca45d2 Show vote day/time in poll results. 2026-02-28 19:07:11 +04:00
John Preston 28434f4bee Full support and build fix. 2025-12-22 17:56:55 +04:00
John Preston 08a979e638 Use more simple tr::... text helpers. 2025-12-15 21:40:54 +04:00
23rd eca8dfb0ec Renamed rpl::start_with_ with rpl::on_. 2025-12-10 21:28:33 +03:00
John Preston c924fcb91f Fix custom emoji in poll results view. 2025-03-20 17:46:27 +04:00
23rd db9e60b4b5 Added amount of total voters to poll results with multiple answers.
Fixed #28879.
2025-01-26 08:49:21 +03:00
John Preston 702aa944dd Move read/reacted list to a layer. 2024-11-17 14:03:29 +04:00
23rd 03790f3da0 Removed include directive for ui_utility from rp_widget header. 2024-08-28 15:15:58 +03:00
John Preston 7f4b540aad Fix crash in poll results collapsing. 2024-08-14 18:17:51 +02:00
23rd e6c22ec1ca Added api support for custom emoji in polls. 2024-04-26 20:12:29 +04:00
John Preston b462d7627f Fix channels in poll results restoring. 2024-01-16 11:18:56 +04:00
23rd 282c076931 Removed redundant peerListShowBox / peerListHideLayer from delegates. 2023-11-09 16:02:18 +03:00
John Preston 29d0c8c2ec Update API scheme to layer 159. 2023-07-20 07:20:07 +04:00
John Preston 65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
23rd a7e2de53f5 Moved out size of result file for userpic to public interface. 2023-02-02 22:12:31 +04:00
John Preston 739123dedc Implement simple premium limits boxes. 2022-05-19 17:27:02 +04:00
John Preston d9bbfeead1 Provide section title from the section class. 2022-04-05 16:31:09 +04:00
23rd e44b37e654 Added to PeerListDelegate methods to show content. 2022-03-04 11:25:10 +03:00
John Preston e89c95551f Show correct downloads elements context menu. 2022-02-27 20:26:52 +03:00
John Preston 340db7662b Improve settings main cover. 2022-02-25 14:14:41 +03:00
23rd 3647241f71 Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
John Preston c534f3f22e Some internal HistoryItem refactoring.
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
John Preston 1342077dcb Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
Ilya Fedin 6b68d001ae Get rid of deprecated ranges::action 2021-03-15 11:41:29 +03:00
John Preston 68b0a85369 Rename RPCError to MTP::Error. 2021-03-12 16:58:26 +04:00
John Preston 92bc278052 Allow inviting contacts to voice chats. 2020-12-22 12:33:06 +04:00
John Preston b6483cb65c Use shared_ptr<Memento> for sections. 2020-12-14 18:48:10 +04:00
John Preston d40768f6b0 Use separate styles for group call boxes. 2020-12-01 09:45:23 +03:00
John Preston 55edb3bdfe Update API scheme to layer 119. Count replies. 2020-09-29 19:03:18 +03:00
John Preston 357caf8007 Keep separate MTP::Config's for separate accounts. 2020-06-23 21:53:41 +04:00
John Preston 0ad7dcaef9 Remove MTP::MainInstance() global access point. 2020-06-23 21:53:40 +04:00
John Preston 57e9651a8a Fix visual glitch in poll results viewing.
We need a visible widget to mark more button height.
An invisible 'more' button doesn't receive geometry change events.
2020-04-21 18:55:35 +04:00
John Preston b88f0108ad Edit chat types in filters. 2020-03-27 20:36:02 +04:00
John Preston 43d8dedec4 Fix collapse after full results are loaded. 2020-01-23 10:09:33 +03:00
John Preston ac650b08fd Allow collapsing expanded poll results. 2020-01-23 10:09:33 +03:00
John Preston e6c005dcba Fix poll result header on scroll top. 2020-01-23 10:09:33 +03:00
John Preston 5acb7448b7 Add loading rows placeholder. 2020-01-23 10:09:33 +03:00