fix: update error handling messages and correct group parameter in createContact method

This commit is contained in:
Willian Coqueiro 2025-07-25 12:02:17 +00:00
parent cf95c027eb
commit 5191438acf
2 changed files with 3 additions and 1 deletions

View File

@ -1059,6 +1059,8 @@ export class BaileysStartupService extends ChannelStartupService {
'failed to decrypt message', 'failed to decrypt message',
'SessionError', 'SessionError',
'Invalid PreKey ID', 'Invalid PreKey ID',
'No session record',
'No session found to decrypt message'
].some((err) => param?.includes?.(err)), ].some((err) => param?.includes?.(err)),
) )
) { ) {

View File

@ -681,7 +681,7 @@ export class ChatwootService {
instance, instance,
body.key.participant.split('@')[0], body.key.participant.split('@')[0],
filterInbox.id, filterInbox.id,
isGroup, false,
body.pushName, body.pushName,
picture_url.profilePictureUrl || null, picture_url.profilePictureUrl || null,
body.key.participant, body.key.participant,