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);