Load local user profile avatar if necessary.

// FREEBIE
pull/1/head
Matthew Chen 7 years ago
parent 21304c18a6
commit 8b9749202d

@ -272,6 +272,12 @@ static const NSInteger kProfileKeyLength = 16;
{
OWSAssert([NSThread isMainThread]);
if (!self.localCachedAvatarImage) {
if (self.localUserProfile.avatarFileName) {
self.localCachedAvatarImage = [self loadProfileAvatarWithFilename:self.localUserProfile.avatarFileName];
}
}
return self.localCachedAvatarImage;
}

Loading…
Cancel
Save