Merge pull request #1364 from WhiskeySockets/fix-receipt-meta-ia-messages

fix: proper send receipt to Meta Ia
This commit is contained in:
Cassio Santos
2025-04-24 16:54:51 -03:00
committed by GitHub
2 changed files with 6 additions and 17 deletions
+2
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 */