Mark general topic as deleted in bot forums.

This commit is contained in:
John Preston
2025-09-05 22:37:08 +04:00
parent c54e05d220
commit cf99eef9c9
+2 -1
View File
@@ -589,7 +589,8 @@ ForumTopic *Forum::enforceTopicFor(MsgId rootId) {
}
bool Forum::topicDeleted(MsgId rootId) const {
return _topicsDeleted.contains(rootId);
return _topicsDeleted.contains(rootId)
|| (rootId == ForumTopic::kGeneralId && peer()->isBot());
}
rpl::producer<> Forum::chatsListChanges() const {