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