Don't show 'Discussion started' in General topic.

This commit is contained in:
John Preston 2022-11-29 18:19:53 +04:00
parent 623176e901
commit 6ff29b8902
1 changed files with 3 additions and 1 deletions

View File

@ -304,7 +304,9 @@ void RepliesList::injectRootMessage(not_null<Viewer*> viewer) {
return;
}
const auto root = lookupRoot();
if (!root || root->topicRootId() != Data::ForumTopic::kGeneralId) {
if (!root
|| (_rootId == Data::ForumTopic::kGeneralId)
|| (root->topicRootId() != Data::ForumTopic::kGeneralId)) {
return;
}
injectRootDivider(root, slice);