From 942d236a11ad68807308b058303ba5256915979c Mon Sep 17 00:00:00 2001 From: Ashmit Mittal Date: Mon, 27 Jul 2026 23:26:49 +0530 Subject: [PATCH] fix: use WWebJS.getChat for inviteV4 fallback in addParticipants (#201792) Co-authored-by: Aliyss Snow <33941859+aliyss@users.noreply.github.com> --- src/structures/GroupChat.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/structures/GroupChat.js b/src/structures/GroupChat.js index 3cecc82..56042b3 100644 --- a/src/structures/GroupChat.js +++ b/src/structures/GroupChat.js @@ -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;