From 0ad998d68db3a4fbc36ec846d7806e2d4c418a79 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Mon, 12 May 2025 11:50:42 -0300 Subject: [PATCH] Fix groupChat addParticipants (#3543) * Fix addParticipants * fix Approve and Reject Membership Requests --- src/structures/GroupChat.js | 2 +- src/util/Injected/Utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GroupChat.js b/src/structures/GroupChat.js index 862f5b4..29714fb 100644 --- a/src/structures/GroupChat.js +++ b/src/structures/GroupChat.js @@ -98,7 +98,7 @@ class GroupChat extends Chat { 419: 'The participant can\'t be added because the group is full' }; - await window.Store.GroupQueryAndUpdate(groupWid); + await window.Store.GroupQueryAndUpdate({ id: groupId }); const groupMetadata = group.groupMetadata; const groupParticipants = groupMetadata?.participants; diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index 8af0324..f9d2902 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -925,7 +925,7 @@ exports.LoadUtils = () => { let response; let result = []; - await window.Store.GroupQueryAndUpdate(groupWid); + await window.Store.GroupQueryAndUpdate({ id: groupId }); if (!requesterIds?.length) { membershipRequests = group.groupMetadata.membershipApprovalRequests._models.map(({ id }) => id);