mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 01:25:50 +00:00
Track unread mentions / reactions in topics.
This commit is contained in:
@@ -163,6 +163,35 @@ rpl::producer<HistoryUpdate> Changes::realtimeHistoryUpdates(
|
||||
return _historyChanges.realtimeUpdates(flag);
|
||||
}
|
||||
|
||||
void Changes::topicUpdated(
|
||||
not_null<ForumTopic*> topic,
|
||||
TopicUpdate::Flags flags) {
|
||||
_topicChanges.updated(topic, flags);
|
||||
scheduleNotifications();
|
||||
}
|
||||
|
||||
rpl::producer<TopicUpdate> Changes::topicUpdates(
|
||||
TopicUpdate::Flags flags) const {
|
||||
return _topicChanges.updates(flags);
|
||||
}
|
||||
|
||||
rpl::producer<TopicUpdate> Changes::topicUpdates(
|
||||
not_null<ForumTopic*> topic,
|
||||
TopicUpdate::Flags flags) const {
|
||||
return _topicChanges.updates(topic, flags);
|
||||
}
|
||||
|
||||
rpl::producer<TopicUpdate> Changes::topicFlagsValue(
|
||||
not_null<ForumTopic*> topic,
|
||||
TopicUpdate::Flags flags) const {
|
||||
return _topicChanges.flagsValue(topic, flags);
|
||||
}
|
||||
|
||||
rpl::producer<TopicUpdate> Changes::realtimeTopicUpdates(
|
||||
TopicUpdate::Flag flag) const {
|
||||
return _topicChanges.realtimeUpdates(flag);
|
||||
}
|
||||
|
||||
void Changes::messageUpdated(
|
||||
not_null<HistoryItem*> item,
|
||||
MessageUpdate::Flags flags) {
|
||||
|
||||
Reference in New Issue
Block a user