mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update jid-utils.ts
This commit is contained in:
@@ -4,7 +4,7 @@ export const SERVER_JID = 'server@c.us'
|
||||
export const PSA_WID = '0@c.us'
|
||||
export const STORIES_JID = 'status@broadcast'
|
||||
|
||||
export type JidServer = 'c.us' | 'g.us' | 'broadcast' | 's.whatsapp.net' | 'call'
|
||||
export type JidServer = 'c.us' | 'g.us' | 'broadcast' | 's.whatsapp.net' | 'call' | 'lid'
|
||||
|
||||
export type JidWithDevice = {
|
||||
user: string
|
||||
@@ -61,4 +61,4 @@ export const jidNormalizedUser = (jid: string | undefined) => {
|
||||
|
||||
const { user, server } = result
|
||||
return jidEncode(user, server === 'c.us' ? 's.whatsapp.net' : server as JidServer)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user