2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00
This commit is contained in:
John Preston
2015-08-05 18:27:09 +03:00
7 changed files with 15 additions and 15 deletions

View File

@@ -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);
}
}