2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Fix "Topic Author" badge for the new topics.

This commit is contained in:
John Preston
2022-11-03 14:13:36 +04:00
parent da941e4837
commit 1953cc2f8a
8 changed files with 56 additions and 6 deletions

View File

@@ -331,6 +331,12 @@ void Session::subscribeForTopicRepliesLists() {
}
}, _lifetime);
session().changes().topicUpdates(
TopicUpdate::Flag::Creator
) | rpl::start_with_next([=](const TopicUpdate &update) {
update.topic->replies()->apply(update);
}, _lifetime);
channelDifferenceTooLong(
) | rpl::start_with_next([=](not_null<ChannelData*> channel) {
if (const auto forum = channel->forum()) {