mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
2b89fb9d40
- 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.
31 lines
644 B
C++
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
|