From 2ce66527fb059122ccef54b94e790ad4f083e5f0 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 1 Sep 2017 17:04:18 -0400 Subject: [PATCH] Add group members individual to profile whitelist when adding group. // FREBIE --- Signal/src/Profiles/OWSProfileManager.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Signal/src/Profiles/OWSProfileManager.m b/Signal/src/Profiles/OWSProfileManager.m index 822fdd627..be81df2fe 100644 --- a/Signal/src/Profiles/OWSProfileManager.m +++ b/Signal/src/Profiles/OWSProfileManager.m @@ -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];