MXHTTPClient::requestWithMethod has two new blocks to track the upload/download progress.

This commit is contained in:
ylecollen
2015-01-07 09:11:21 +01:00
parent 7c8b0e4975
commit 4195c301de
4 changed files with 29 additions and 3 deletions
@@ -371,6 +371,8 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
_userPicture.enabled = YES;
isAvatarUploading = NO;
[self handleErrorDuringPictureSaving:error];
} uploadProgress:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
// need to display the progress ?
}];
} else {
[mxHandler.mxSession.myUser setAvatarUrl:uploadedPictureURL