From f36bd0d3b9928fba067edf32e23f22e4b1ea1ab5 Mon Sep 17 00:00:00 2001 From: Cohee Date: Mon, 12 Jun 2023 12:35:17 +0300 Subject: [PATCH] Fix stop button not deactivating on impersonation finish in group chats --- public/scripts/group-chats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 5915bb473..c52837680 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -547,7 +547,7 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) { } // if not swipe - check if message generated already - if (type !== "swipe" && !isMultigenEnabled() && chat.length == messagesBefore) { + if (generateType === "group_chat" && !isMultigenEnabled() && chat.length == messagesBefore) { await delay(100); } // if swipe - see if message changed