mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
iterable error in groups fix
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user