Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 2ce66527fb
commit 16dcc73b2d

@ -869,9 +869,10 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640;
NSData *groupId = groupThread.groupModel.groupId; NSData *groupId = groupThread.groupModel.groupId;
[self addGroupIdToProfileWhitelist:groupId]; [self addGroupIdToProfileWhitelist:groupId];
// When we add a group to the profile whitelist, // When we add a group to the profile whitelist, we might as well
// also add all current members to the profile // also add all current members to the profile whitelist
// whitelist individually as well. // individually as well just in case delivery of the profile key
// fails.
for (NSString *recipientId in groupThread.recipientIdentifiers) { for (NSString *recipientId in groupThread.recipientIdentifiers) {
[self addUserToProfileWhitelist:recipientId]; [self addUserToProfileWhitelist:recipientId];
} }

Loading…
Cancel
Save