iterable error in groups fix

This commit is contained in:
Adhiraj Singh
2021-08-07 10:55:52 +05:30
parent 75c15e7767
commit ab58843b8a

View File

@@ -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({