Ignore old messages
This commit is contained in:
parent
9032025920
commit
f585cc1c5a
1 changed files with 7 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class Client extends EventEmitter {
|
|||
}
|
||||
|
||||
await page.exposeFunction('onAddMessageEvent', msg => {
|
||||
if (msg.id.fromMe) return;
|
||||
if (msg.id.fromMe || !msg.isNewMsg) return;
|
||||
this.emit(Events.MESSAGE_CREATE, new Message(this, msg));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue