From ab58843b8a983a93dd5b3876c0a04c98fbcbf193 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sat, 7 Aug 2021 10:55:52 +0530 Subject: [PATCH] iterable error in groups fix --- src/Connection/groups.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Connection/groups.ts b/src/Connection/groups.ts index 86540c8..44ba2e9 100644 --- a/src/Connection/groups.ts +++ b/src/Connection/groups.ts @@ -64,8 +64,8 @@ const makeGroupsSocket = (config: SocketConfig) => { }) const participants: GroupParticipant[] = [] let desc: string | undefined - if(Array.isArray(data)) { - const nodes = data[0].data as BinaryNode[] + if(Array.isArray(data) && Array.isArray(data[0].data)) { + const nodes = data[0].data for(const item of nodes) { if(item.header === 'participant') { participants.push({