2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Reload topics on channelDifferenceTooLong.

This commit is contained in:
John Preston
2022-10-19 19:05:35 +04:00
parent 08ba277327
commit 5356f6cd2c
6 changed files with 103 additions and 20 deletions

View File

@@ -395,6 +395,9 @@ void Updates::channelDifferenceDone(
data.vmessages().v,
QVector<MTPDialog>(1, data.vdialog()));
session().data().channelDifferenceTooLong(channel);
if (const auto forum = channel->forum()) {
forum->reloadTopics();
}
}, [&](const MTPDupdates_channelDifference &data) {
feedChannelDifference(data);
channel->ptsInit(data.vpts().v);
@@ -2210,7 +2213,9 @@ void Updates::feedUpdate(const MTPUpdate &update) {
}
const auto history = channel->owner().history(channel);
history->requestChatListMessage();
if (!history->unreadCountKnown()) {
if (!history->folderKnown()
|| (!history->unreadCountKnown()
&& !history->peer->isForum())) {
history->owner().histories().requestDialogEntry(history);
}
if (!channel->amCreator()) {