From 072706368c849325b939c222be99a82e32b09d99 Mon Sep 17 00:00:00 2001 From: LyFE <76509367+lyfe00011@users.noreply.github.com> Date: Sun, 19 Dec 2021 22:10:18 +0530 Subject: [PATCH] fix groupMetdata (#1049) --- src/Socket/groups.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socket/groups.ts b/src/Socket/groups.ts index 7a76fb6..4c8e635 100644 --- a/src/Socket/groups.ts +++ b/src/Socket/groups.ts @@ -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 {