Clear profile state when a user’s profile key changes.

// FREEBIE
pull/1/head
Matthew Chen 7 years ago
parent 8b9749202d
commit 9266c3a4f9

@ -581,6 +581,12 @@ static const NSInteger kProfileKeyLength = 16;
userProfile.profileKey = profileKey;
// Clear profile state.
userProfile.profileName = nil;
userProfile.avatarUrl = nil;
userProfile.avatarDigest = nil;
userProfile.avatarFileName = nil;
[self saveUserProfile:userProfile];
[self refreshProfileForRecipientId:recipientId ignoreThrottling:YES];

Loading…
Cancel
Save