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 (
|
if (
|
||||||
rpcResult.name ===
|
rpcResult.name ===
|
||||||
'ParticipantRequestCodeCanBeSent' &&
|
'ParticipantRequestCodeCanBeSent' &&
|
||||||
(userChat =
|
(userChat = await window.WWebJS.getChat(
|
||||||
window
|
pWid._serialized,
|
||||||
.require('WAWebCollections')
|
{ getAsModel: false },
|
||||||
.Chat.get(pWid) ||
|
))
|
||||||
(await window
|
|
||||||
.require('WAWebCollections')
|
|
||||||
.Chat.find(pWid)))
|
|
||||||
) {
|
) {
|
||||||
const groupName =
|
const groupName =
|
||||||
group.formattedTitle || group.name;
|
group.formattedTitle || group.name;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue