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:
Ashmit Mittal 2026-07-27 23:26:49 +05:30 • committed by GitHub
commit 942d236a11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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