Respond to CR.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-08-28 13:11:13 -04:00
parent 7e4859241a
commit cdfdb80fd1
1 changed files with 2 additions and 0 deletions

View File

@ -620,6 +620,8 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640;
}];
}
failure:^(NSURLSessionDataTask *task, NSError *error) {
// Only clear the local avatar if we have a response. Otherwise, we
// had a network failure and probably didn't reach the service.
if (task.response != nil) {
clearLocalAvatar();
}