Fix stop button not deactivating on impersonation finish in group chats

This commit is contained in:
Cohee
2023-06-12 12:35:17 +03:00
parent afe60c1e39
commit f36bd0d3b9

View File

@ -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