Files
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

31 lines
644 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
class History;
namespace Main {
class Session;
} // namespace Main
namespace Data {
struct MessagesSlice;
struct MessagePosition;
[[nodiscard]] rpl::producer<MessagesSlice> PollMessagesViewer(
not_null<Main::Session*> session,
not_null<History*> history,
MsgId topicRootId,
PeerId monoforumPeerId,
MessagePosition aroundId,
int limitBefore,
int limitAfter);
} // namespace Data