fix: proper send receipt to Meta Ia trigger messages to avoid offline pending notifications hang

This commit is contained in:
canove
2025-04-23 09:38:36 -03:00
parent fb1d21b312
commit 36456d6db6
2 changed files with 11 additions and 22 deletions

View File

@@ -46,6 +46,8 @@ export const jidDecode = (jid: string | undefined): FullJid | undefined => {
export const areJidsSameUser = (jid1: string | undefined, jid2: string | undefined) => (
jidDecode(jid1)?.user === jidDecode(jid2)?.user
)
/** is the jid Meta IA */
export const isJidMetaIa = (jid: string | undefined) => (jid?.endsWith('@bot'))
/** is the jid a user */
export const isJidUser = (jid: string | undefined) => (jid?.endsWith('@s.whatsapp.net'))
/** is the jid a group */