mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Support General topic somehow.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user