feat: extra metadata on groupMetadata (#1374)

This commit is contained in:
Nurutomo
2025-06-10 18:25:08 +07:00
committed by GitHub
parent bd53572e37
commit 99bbafeae5
2 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ export type GroupParticipant = Contact & {
isAdmin?: boolean
isSuperAdmin?: boolean
admin?: 'admin' | 'superadmin' | null
jid?: string | undefined
}
export type ParticipantAction = 'add' | 'remove' | 'promote' | 'demote' | 'modify'
@@ -17,15 +18,19 @@ export interface GroupMetadata {
/** group uses 'lid' or 'pn' to send messages */
addressingMode: 'pn' | 'lid'
owner: string | undefined
ownerJid?: string | undefined
subject: string
/** group subject owner */
subjectOwner?: string
subjectOwnerJid?: string
/** group subject modification date */
subjectTime?: number
creation?: number
desc?: string
descOwner?: string
descOwnerJid?: string
descId?: string
descTime?: number
/** if this group is part of a community, it returns the jid of the community to which it belongs */
linkedParent?: string
/** is set when the group only allows admins to change group settings */