Fetch profiles for pending members

This commit is contained in:
Fedor Indutny 2022-02-09 10:34:24 -08:00 committed by GitHub
parent 4d21e1e22b
commit bd9483ddee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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,