From eb0d00015939da350841b02a34a72c97afc9b86b Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sat, 29 Jan 2022 01:58:14 +0200 Subject: [PATCH] fixes :tada: --- src/structures/GroupChat.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/structures/GroupChat.js b/src/structures/GroupChat.js index 7ebb15f..11043d6 100644 --- a/src/structures/GroupChat.js +++ b/src/structures/GroupChat.js @@ -60,10 +60,10 @@ class GroupChat extends Chat { */ async addParticipants(participantIds) { let data = []; - for (let participantId of participantIds){ + for (let participantId of participantIds) { data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { return window.Store.Wap.addParticipants(chatId, participantIds); - }, this.id._serialized, participantIds)); + }, this.id._serialized, [participantId])); } return data; } @@ -75,10 +75,10 @@ class GroupChat extends Chat { */ async removeParticipants(participantIds) { let data = []; - for (let participantId of participantIds){ + for (let participantId of participantIds) { data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { return window.Store.Wap.removeParticipants(chatId, participantIds); - }, this.id._serialized, participantIds)); + }, this.id._serialized, [participantId])); } return data; } @@ -93,7 +93,7 @@ class GroupChat extends Chat { for (let participantId of participantIds){ data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { return window.Store.Wap.promoteParticipants(chatId, participantIds); - }, this.id._serialized, participantIds)); + }, this.id._serialized, [participantId])); } return data; } @@ -108,7 +108,7 @@ class GroupChat extends Chat { for (let participantId of participantIds){ data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { return window.Store.Wap.demoteParticipants(chatId, participantIds); - }, this.id._serialized, participantIds)); + }, this.id._serialized, [participantId])); } return data; }