mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
possible duplicate key fix
This commit is contained in:
@@ -101,8 +101,11 @@ WAConnectionTest('Groups', (conn) => {
|
||||
}
|
||||
})
|
||||
})
|
||||
await conn.groupRemove(gid, [testJid])
|
||||
await waitForEvent
|
||||
const metadata = await conn.groupMetadata (gid)
|
||||
if (metadata.participants.find(({id}) => id === testJid)) {
|
||||
await conn.groupRemove(gid, [testJid])
|
||||
await waitForEvent
|
||||
}
|
||||
conn.removeAllListeners ('group-participants-remove')
|
||||
})
|
||||
it('should leave the group', async () => {
|
||||
|
||||
Reference in New Issue
Block a user