Add group members individual to profile whitelist when adding group.

// FREBIE
pull/1/head
Matthew Chen 8 years ago
parent 605ba90bce
commit 2ce66527fb

@ -868,6 +868,13 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640;
TSGroupThread *groupThread = (TSGroupThread *)thread;
NSData *groupId = groupThread.groupModel.groupId;
[self addGroupIdToProfileWhitelist:groupId];
// When we add a group to the profile whitelist,
// also add all current members to the profile
// whitelist individually as well.
for (NSString *recipientId in groupThread.recipientIdentifiers) {
[self addUserToProfileWhitelist:recipientId];
}
} else {
NSString *recipientId = thread.contactIdentifier;
[self addUserToProfileWhitelist:recipientId];

Loading…
Cancel
Save