add owner country code attribute (#1565)

name says it all
This commit is contained in:
DevAstro
2025-07-05 21:59:24 +01:00
committed by GitHub
parent 3cdb0f4dd9
commit 44c5e16c05
2 changed files with 2 additions and 0 deletions

View File

@@ -335,6 +335,7 @@ export const extractGroupMetadata = (result: BinaryNode) => {
creation: +group.attrs.creation,
owner: group.attrs.creator ? jidNormalizedUser(group.attrs.creator) : undefined,
ownerJid: group.attrs.creator_pn ? jidNormalizedUser(group.attrs.creator_pn) : undefined,
owner_country_code: group.attrs.creator_country_code,
desc,
descId,
descOwner,

View File

@@ -18,6 +18,7 @@ export interface GroupMetadata {
addressingMode: 'pn' | 'lid'
owner: string | undefined
ownerJid?: string | undefined
owner_country_code: string
subject: string
/** group subject owner */
subjectOwner?: string