From 4b98392a3821c196b094b6743557d5c3f6249bfa Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sat, 30 Sep 2023 21:13:51 +0300 Subject: [PATCH] Update jid-utils.ts --- src/WABinary/jid-utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WABinary/jid-utils.ts b/src/WABinary/jid-utils.ts index 45ceef6..d7cbbea 100644 --- a/src/WABinary/jid-utils.ts +++ b/src/WABinary/jid-utils.ts @@ -46,6 +46,8 @@ export const areJidsSameUser = (jid1: string | undefined, jid2: string | undefin ) /** is the jid a user */ export const isJidUser = (jid: string | undefined) => (jid?.endsWith('@s.whatsapp.net')) +/** is the jid a group */ +export const isLidUser = (jid: string | undefined) => (jid?.endsWith('@lid')) /** is the jid a broadcast */ export const isJidBroadcast = (jid: string | undefined) => (jid?.endsWith('@broadcast')) /** is the jid a group */