Add group members individual to profile whitelist when adding group.

// FREBIE
This commit is contained in:
Matthew Chen 2017-09-01 17:04:18 -04:00
parent 605ba90bce
commit 2ce66527fb
1 changed files with 7 additions and 0 deletions

View File

@ -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];