2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 13:47:47 +00:00

Fix file upload progress display.

Regression was introduced in 5d18d7c813.
This commit is contained in:
John Preston 2017-12-27 21:57:07 +03:00
parent a00941f7ce
commit 1a115cc7e5

View File

@ -476,7 +476,7 @@ void Uploader::partLoaded(const MTPBool &result, mtpRequestId requestId) {
if (document->uploading()) { if (document->uploading()) {
const auto doneParts = file.docSentParts const auto doneParts = file.docSentParts
- int(docRequestsSent.size()); - int(docRequestsSent.size());
document->uploadingData->offset = std::max( document->uploadingData->offset = std::min(
document->uploadingData->size, document->uploadingData->size,
doneParts * file.docPartSize); doneParts * file.docPartSize);
} }