Add lid to Contact - contact sync, history sync, group participants (#1472)

This commit is contained in:
devlikeapro
2025-06-18 18:08:09 +07:00
committed by GitHub
parent 6b4dce897d
commit b8464d3665
5 changed files with 30 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
export interface Contact {
/** ID either in lid or jid format **/
id: string
/** ID in Lid (anonymous) format (@lid) **/
lid?: string
/** ID in Phone Number format (@s.whatsapp.net) **/
jid?: string
/** name of the contact, you have saved on your WA */
name?: string
/** name of the contact, the contact has set on their own on WA */

View File

@@ -4,7 +4,6 @@ export type GroupParticipant = Contact & {
isAdmin?: boolean
isSuperAdmin?: boolean
admin?: 'admin' | 'superadmin' | null
jid?: string | undefined
}
export type ParticipantAction = 'add' | 'remove' | 'promote' | 'demote' | 'modify'