File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ export const extractGroupMetadata = (result: BinaryNode) => {
335
335
owner : group . attrs . creator ? jidNormalizedUser ( group . attrs . creator ) : undefined ,
336
336
desc,
337
337
descId,
338
+ linkedParent : getBinaryNodeChild ( group , 'linked_parent' ) ?. attrs . jid || undefined ,
338
339
restrict : ! ! getBinaryNodeChild ( group , 'locked' ) ,
339
340
announce : ! ! getBinaryNodeChild ( group , 'announcement' ) ,
340
341
isCommunity : ! ! getBinaryNodeChild ( group , 'parent' ) ,
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ export interface GroupMetadata {
16
16
desc ?: string
17
17
descOwner ?: string
18
18
descId ?: string
19
+ /** if this group is part of a community, it returns the jid of the community to which it belongs */
20
+ linkedParent ?: string
19
21
/** is set when the group only allows admins to change group settings */
20
22
restrict ?: boolean
21
23
/** is set when the group only allows admins to write messages */
You can’t perform that action at this time.
0 commit comments