fixes 🎉

This commit is contained in:
Rajeh Taher
2022-01-29 01:58:14 +02:00
committed by GitHub
parent cf5c5e4ec1
commit eb0d000159

View File

@@ -63,7 +63,7 @@ class GroupChat extends Chat {
for (let participantId of participantIds) { for (let participantId of participantIds) {
data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { data.push(await this.client.pupPage.evaluate((chatId, participantIds) => {
return window.Store.Wap.addParticipants(chatId, participantIds); return window.Store.Wap.addParticipants(chatId, participantIds);
}, this.id._serialized, participantIds)); }, this.id._serialized, [participantId]));
} }
return data; return data;
} }
@@ -78,7 +78,7 @@ class GroupChat extends Chat {
for (let participantId of participantIds) { for (let participantId of participantIds) {
data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { data.push(await this.client.pupPage.evaluate((chatId, participantIds) => {
return window.Store.Wap.removeParticipants(chatId, participantIds); return window.Store.Wap.removeParticipants(chatId, participantIds);
}, this.id._serialized, participantIds)); }, this.id._serialized, [participantId]));
} }
return data; return data;
} }
@@ -93,7 +93,7 @@ class GroupChat extends Chat {
for (let participantId of participantIds){ for (let participantId of participantIds){
data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { data.push(await this.client.pupPage.evaluate((chatId, participantIds) => {
return window.Store.Wap.promoteParticipants(chatId, participantIds); return window.Store.Wap.promoteParticipants(chatId, participantIds);
}, this.id._serialized, participantIds)); }, this.id._serialized, [participantId]));
} }
return data; return data;
} }
@@ -108,7 +108,7 @@ class GroupChat extends Chat {
for (let participantId of participantIds){ for (let participantId of participantIds){
data.push(await this.client.pupPage.evaluate((chatId, participantIds) => { data.push(await this.client.pupPage.evaluate((chatId, participantIds) => {
return window.Store.Wap.demoteParticipants(chatId, participantIds); return window.Store.Wap.demoteParticipants(chatId, participantIds);
}, this.id._serialized, participantIds)); }, this.id._serialized, [participantId]));
} }
return data; return data;
} }