Fix groupChat addParticipants (#3543)

* Fix addParticipants

* fix Approve and Reject Membership Requests
This commit is contained in:
BenyFilho 2025-05-12 11:50:42 -03:00 • committed by GitHub
commit 0ad998d68d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

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

View file

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