Should avoid flickerings while updating the oneself avatar

This commit is contained in:
ylecollen
2015-01-05 10:15:26 +01:00
parent 5a236376da
commit 9f0e8d2ff1
@@ -307,6 +307,9 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
} else {
[mxHandler.mxSession.myUser setAvatarUrl:uploadedPictureURL
success:^{
// uploadedPictureURL becomes the uploaded picture
currentPictureURL = uploadedPictureURL;
// manage the nil case.
[self updateUserPicture:uploadedPictureURL];
uploadedPictureURL = nil;
[_activityIndicator stopAnimating];