2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support cloud view_as_messages forum setting.

This commit is contained in:
John Preston
2023-11-16 20:53:06 +04:00
parent 43a8733fc7
commit 0ffda016da
10 changed files with 102 additions and 9 deletions

View File

@@ -727,6 +727,8 @@ public:
void webViewResultSent(WebViewResultSent &&sent);
[[nodiscard]] rpl::producer<WebViewResultSent> webViewResultSent() const;
void saveViewAsMessages(not_null<Forum*> forum, bool viewAsMessages);
[[nodiscard]] auto peerDecorationsUpdated() const
-> rpl::producer<not_null<PeerData*>>;
@@ -1022,6 +1024,9 @@ private:
rpl::event_stream<WebViewResultSent> _webViewResultSent;
rpl::event_stream<not_null<PeerData*>> _peerDecorationsUpdated;
base::flat_map<
not_null<ChannelData*>,
mtpRequestId> _viewAsMessagesRequests;
Groups _groups;
const std::unique_ptr<ChatFilters> _chatsFilters;