mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
eslint!!
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const Chat = require('./Chat');
|
const Chat = require('./Chat');
|
||||||
const Util = require('../util/Util')
|
const Util = require('../util/Util');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Group participant information
|
* Group participant information
|
||||||
@@ -68,7 +68,7 @@ class GroupChat extends Chat {
|
|||||||
for (const participantWid of participantWids) {
|
for (const participantWid of participantWids) {
|
||||||
status.push(await window.Store.GroupParticipants.sendAddParticipants(chatWid, participantWid));
|
status.push(await window.Store.GroupParticipants.sendAddParticipants(chatWid, participantWid));
|
||||||
if (sleep) {
|
if (sleep) {
|
||||||
await Util.sleep(sleep)
|
await Util.sleep(sleep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
@@ -89,7 +89,7 @@ class GroupChat extends Chat {
|
|||||||
for (const participantWid of participantWids) {
|
for (const participantWid of participantWids) {
|
||||||
status.push(await window.Store.GroupParticipants.sendRemoveParticipants(chatWid, participantWid));
|
status.push(await window.Store.GroupParticipants.sendRemoveParticipants(chatWid, participantWid));
|
||||||
if (sleep) {
|
if (sleep) {
|
||||||
await Util.sleep(sleep)
|
await Util.sleep(sleep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
@@ -110,7 +110,7 @@ class GroupChat extends Chat {
|
|||||||
for (const participantWid of participantWids) {
|
for (const participantWid of participantWids) {
|
||||||
status.push(await window.Store.GroupParticipants.sendPromoteParticipants(chatWid, participantWid));
|
status.push(await window.Store.GroupParticipants.sendPromoteParticipants(chatWid, participantWid));
|
||||||
if (sleep) {
|
if (sleep) {
|
||||||
await Util.sleep(sleep)
|
await Util.sleep(sleep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
@@ -131,7 +131,7 @@ class GroupChat extends Chat {
|
|||||||
for (const participantWid of participantWids) {
|
for (const participantWid of participantWids) {
|
||||||
status.push(await window.Store.GroupParticipants.sendDemoteParticipants(chatWid, participantWid));
|
status.push(await window.Store.GroupParticipants.sendDemoteParticipants(chatWid, participantWid));
|
||||||
if (sleep) {
|
if (sleep) {
|
||||||
await Util.sleep(sleep)
|
await Util.sleep(sleep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Reference in New Issue
Block a user