mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop
This commit is contained in:
@@ -4381,7 +4381,7 @@ void HistoryWidget::onDocumentProgress(MsgId newId) {
|
||||
HistoryItem *item = App::histItemById(newId);
|
||||
if (item) {
|
||||
DocumentData *doc = (item->getMedia() && item->getMedia()->type() == MediaTypeDocument) ? static_cast<HistoryDocument*>(item->getMedia())->document() : 0;
|
||||
updateSendAction(item->history(), SendActionUploadFile, doc->uploadOffset);
|
||||
updateSendAction(item->history(), SendActionUploadFile, doc ? doc->uploadOffset : 0);
|
||||
msgUpdated(item->history()->peer->id, item);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user