fix groupMetdata (#1049)

This commit is contained in:
LyFE
2021-12-19 22:10:18 +05:30
committed by GitHub
parent bacd046a4e
commit 072706368c

View File

@@ -199,8 +199,8 @@ export const extractGroupMetadata = (result: BinaryNode) => {
owner: group.attrs.creator ? jidNormalizedUser(group.attrs.creator) : undefined,
desc,
descId,
restrict: !!getBinaryNodeChild(result, 'locked'),
announce: !!getBinaryNodeChild(result, 'announcement'),
restrict: !!getBinaryNodeChild(group, 'locked'),
announce: !!getBinaryNodeChild(group, 'announcement'),
participants: getBinaryNodeChildren(group, 'participant').map(
({ attrs }) => {
return {