Fix group profile whitelist check.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 1944979ac2
commit 65db75a91d

@ -775,7 +775,7 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640;
NSString *groupIdKey = [groupId hexadecimalString];
// We just consult the lazy cache, not the db.
if (self.groupProfileWhitelistCache[groupIdKey]) {
if ([self isGroupIdInProfileWhitelist:groupId]) {
return;
}

@ -383,6 +383,7 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
TSGroupThread *groupThread = (TSGroupThread *)self.thread;
if ([groupThread.groupModel.groupId isEqualToData:groupId]) {
[self ensureDynamicInteractions];
[self ensureBannerState];
}
}
}
@ -825,6 +826,7 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
@"Text for banner in group conversation view that offers to share your profile with this group.")
bannerColor:[UIColor ows_reminderDarkYellowColor]
tapSelector:@selector(groupProfileWhitelistBannerWasTapped:)];
return;
}
}

Loading…
Cancel
Save