From 00fa7f81fe4c86d094dbaba46f5014cef144df36 Mon Sep 17 00:00:00 2001 From: marcelo-megaonline <81028641+marcelo-megaonline@users.noreply.github.com> Date: Sat, 21 Oct 2023 16:43:33 -0300 Subject: [PATCH] ajust --- src/lib/wapi/wapi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/wapi/wapi.js b/src/lib/wapi/wapi.js index d8ff07166..1df5f4213 100644 --- a/src/lib/wapi/wapi.js +++ b/src/lib/wapi/wapi.js @@ -413,7 +413,8 @@ if (typeof window.WAPI === 'undefined') { for (let i = 0; i < numChatsToDelete; i++) { await window.WAPI.chat .delete(chats[i].id._serialized) - .then(result => {}); + .then((_) => true) + .catch((_) => true); } } catch (e) { console.error('Erro:', e);