Skip to content

Commit 0ad998d

Browse files
authored
Fix groupChat addParticipants (#3543)
* Fix addParticipants * fix Approve and Reject Membership Requests
1 parent ad11b5b commit 0ad998d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/structures/GroupChat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class GroupChat extends Chat {
9898
419: 'The participant can\'t be added because the group is full'
9999
};
100100

101-
await window.Store.GroupQueryAndUpdate(groupWid);
101+
await window.Store.GroupQueryAndUpdate({ id: groupId });
102102
const groupMetadata = group.groupMetadata;
103103
const groupParticipants = groupMetadata?.participants;
104104

src/util/Injected/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ exports.LoadUtils = () => {
925925
let response;
926926
let result = [];
927927

928-
await window.Store.GroupQueryAndUpdate(groupWid);
928+
await window.Store.GroupQueryAndUpdate({ id: groupId });
929929

930930
if (!requesterIds?.length) {
931931
membershipRequests = group.groupMetadata.membershipApprovalRequests._models.map(({ id }) => id);

0 commit comments

Comments
 (0)