mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix file upload progress display.
Regression was introduced in 5d18d7c813
.
This commit is contained in:
parent
a00941f7ce
commit
1a115cc7e5
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ void Uploader::partLoaded(const MTPBool &result, mtpRequestId requestId) {
|
|||
if (document->uploading()) {
|
||||
const auto doneParts = file.docSentParts
|
||||
- int(docRequestsSent.size());
|
||||
document->uploadingData->offset = std::max(
|
||||
document->uploadingData->offset = std::min(
|
||||
document->uploadingData->size,
|
||||
doneParts * file.docPartSize);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue