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[] = []
|
const participants: GroupParticipant[] = []
|
||||||
let desc: string | undefined
|
let desc: string | undefined
|
||||||
if(Array.isArray(data)) {
|
if(Array.isArray(data) && Array.isArray(data[0].data)) {
|
||||||
const nodes = data[0].data as BinaryNode[]
|
const nodes = data[0].data
|
||||||
for(const item of nodes) {
|
for(const item of nodes) {
|
||||||
if(item.header === 'participant') {
|
if(item.header === 'participant') {
|
||||||
participants.push({
|
participants.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user