Fix groupChat addParticipants (#3543)
* Fix addParticipants * fix Approve and Reject Membership Requests
This commit is contained in:
parent
ad11b5bfee
commit
0ad998d68d
2 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ class GroupChat extends Chat {
|
||||||
419: 'The participant can\'t be added because the group is full'
|
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 groupMetadata = group.groupMetadata;
|
||||||
const groupParticipants = groupMetadata?.participants;
|
const groupParticipants = groupMetadata?.participants;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -925,7 +925,7 @@ exports.LoadUtils = () => {
|
||||||
let response;
|
let response;
|
||||||
let result = [];
|
let result = [];
|
||||||
|
|
||||||
await window.Store.GroupQueryAndUpdate(groupWid);
|
await window.Store.GroupQueryAndUpdate({ id: groupId });
|
||||||
|
|
||||||
if (!requesterIds?.length) {
|
if (!requesterIds?.length) {
|
||||||
membershipRequests = group.groupMetadata.membershipApprovalRequests._models.map(({ id }) => id);
|
membershipRequests = group.groupMetadata.membershipApprovalRequests._models.map(({ id }) => id);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue