fix: use WWebJS.getChat for inviteV4 fallback in addParticipants (#201792)
Co-authored-by: Aliyss Snow <33941859+aliyss@users.noreply.github.com>
This commit is contained in:
parent
1780711a1c
commit
942d236a11
1 changed files with 4 additions and 7 deletions
|
|
@ -209,13 +209,10 @@ class GroupChat extends Chat {
|
|||
if (
|
||||
rpcResult.name ===
|
||||
'ParticipantRequestCodeCanBeSent' &&
|
||||
(userChat =
|
||||
window
|
||||
.require('WAWebCollections')
|
||||
.Chat.get(pWid) ||
|
||||
(await window
|
||||
.require('WAWebCollections')
|
||||
.Chat.find(pWid)))
|
||||
(userChat = await window.WWebJS.getChat(
|
||||
pWid._serialized,
|
||||
{ getAsModel: false },
|
||||
))
|
||||
) {
|
||||
const groupName =
|
||||
group.formattedTitle || group.name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue