2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support forwarding to monoforums.

This commit is contained in:
John Preston
2025-05-13 18:18:24 +04:00
parent e17bf18350
commit 76db55ff19
36 changed files with 516 additions and 78 deletions

View File

@@ -228,6 +228,7 @@ void ChannelData::setFlags(ChannelDataFlags which) {
}
}
if (diff & (Flag::Forum
| Flag::Monoforum
| Flag::CallNotEmpty
| Flag::SimilarExpanded
| Flag::Signatures
@@ -236,12 +237,14 @@ void ChannelData::setFlags(ChannelDataFlags which) {
if (diff & Flag::CallNotEmpty) {
history->updateChatListEntry();
}
if (diff & Flag::Forum) {
if (diff & (Flag::Forum | Flag::Monoforum)) {
Core::App().notifications().clearFromHistory(history);
history->updateChatListEntryHeight();
if (history->inChatList()) {
if (const auto forum = this->forum()) {
forum->preloadTopics();
} else if (const auto monoforum = this->monoforum()) {
monoforum->loadMore();
}
}
}