From bd9483ddee32071c29545a0796ff7ab2aff1344c Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 9 Feb 2022 10:34:24 -0800 Subject: [PATCH] Fetch profiles for pending members --- ts/groups.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ts/groups.ts b/ts/groups.ts index 3eb8b75229..dfc6915495 100644 --- a/ts/groups.ts +++ b/ts/groups.ts @@ -4734,6 +4734,13 @@ async function applyGroupState({ if (groupState.membersPendingAdminApproval) { result.pendingAdminApprovalV2 = groupState.membersPendingAdminApproval.map( member => { + if (member.profileKey) { + newProfileKeys.push({ + profileKey: member.profileKey, + uuid: UUID.cast(member.userId), + }); + } + return { uuid: UUID.cast(member.userId), timestamp: member.timestamp,