2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Support General topic somehow.

This commit is contained in:
John Preston
2022-11-29 15:54:47 +04:00
parent 8cd5105813
commit 57af221d39
12 changed files with 29 additions and 27 deletions

View File

@@ -257,10 +257,12 @@ void Uploader::sendProgressUpdate(
const auto history = item->history();
auto &manager = _api->session().sendProgressManager();
manager.update(history, type, progress);
if (const auto replyTo = item->topicRootId()) {
if (const auto replyTo = item->replyToTop()) {
if (history->peer->isMegagroup()) {
manager.update(history, replyTo, type, progress);
}
} else if (history->peer->isForum()) {
manager.update(history, item->topicRootId(), type, progress);
}
_api->session().data().requestItemRepaint(item);
}