From 9e0fcbe6f022e4acbb047cfbd814c9012a293722 Mon Sep 17 00:00:00 2001 From: Edgard Date: Wed, 7 Jul 2021 19:09:48 -0300 Subject: [PATCH] fix: Corrigido o disparo do evento onAddedToGroup --- src/lib/wapi/listeners/add-on-added-to-group.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/wapi/listeners/add-on-added-to-group.js b/src/lib/wapi/listeners/add-on-added-to-group.js index 132c7e8b9..e0d325b07 100644 --- a/src/lib/wapi/listeners/add-on-added-to-group.js +++ b/src/lib/wapi/listeners/add-on-added-to-group.js @@ -32,9 +32,9 @@ export function addOnAddedToGroup() { * - Evento de adicionado no grupo */ if ( - message.isNewMsg || - message.isNotification || - message.type === 'gp2' || + message.isNewMsg && + message.isNotification && + message.type === 'gp2' && message.subtype === 'add' ) { try {