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;