From 4a52fbf3a0763cdce666937dd23e08b979452fed Mon Sep 17 00:00:00 2001 From: SemmieDev Date: Sun, 1 Dec 2024 12:00:39 +0100 Subject: [PATCH] Fix and improve auto accept invite requests (#999) --- html/src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index 8d4a3876..af26aded 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -7376,7 +7376,7 @@ speechSynthesis.getVoices(); ) { return; } - if (!$utils.checkCanInvite(currentLocation)) { + if (!$app.checkCanInvite(currentLocation)) { return; } @@ -7395,6 +7395,9 @@ speechSynthesis.getVoices(); ) .then((_args) => { $app.$message(`Auto invite sent to ${ref.senderUsername}`); + API.hideNotification({ + notificationId: ref.id + }); return _args; }) .catch((err) => {