Added recent voters to media view.

This commit is contained in:
23rd
2026-03-18 17:22:09 +03:00
parent 49e75e1ab0
commit bbdc6abea8
7 changed files with 186 additions and 7 deletions
@@ -4916,6 +4916,7 @@ void Session::sendWebPageGamePollTodoListNotifications() {
}
}
for (const auto &poll : base::take(_pollsUpdated)) {
_pollUpdates.fire_copy(poll);
if (const auto i = _pollViews.find(poll); i != _pollViews.end()) {
resize.insert(end(resize), begin(i->second), end(i->second));
}
@@ -4935,6 +4936,10 @@ rpl::producer<not_null<WebPageData*>> Session::webPageUpdates() const {
return _webpageUpdates.events();
}
rpl::producer<not_null<PollData*>> Session::pollUpdates() const {
return _pollUpdates.events();
}
void Session::channelDifferenceTooLong(not_null<ChannelData*> channel) {
_channelDifferenceTooLong.fire_copy(channel);
}