Don't auto-exec on disable QR

This commit is contained in:
Cohee 2023-11-24 13:32:27 +02:00
parent ad8709842b
commit 720da5649b
1 changed files with 4 additions and 0 deletions

View File

@ -561,6 +561,8 @@ function saveQROrder() {
}
async function onMessageReceived(index) {
if (!extension_settings.quickReply.quickReplyEnabled) return;
for (let i = 0; i < extension_settings.quickReply.numberOfSlots; i++) {
const qr = extension_settings.quickReply.quickReplySlots[i];
if (qr?.autoExecute_botMessage) {
@ -573,6 +575,8 @@ async function onMessageReceived(index) {
}
async function onMessageSent(index) {
if (!extension_settings.quickReply.quickReplyEnabled) return;
for (let i = 0; i < extension_settings.quickReply.numberOfSlots; i++) {
const qr = extension_settings.quickReply.quickReplySlots[i];
if (qr?.autoExecute_userMessage) {