Merge pull request #1264 from ygorsantana/fix/expiration-useless

Fix: Expiration being useless on awaitUser false
This commit is contained in:
Davidson Gomes
2025-02-22 21:03:05 -03:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -1018,10 +1018,6 @@ export class TypebotController extends ChatbotController implements ChatbotContr
return;
}
if (session && !session.awaitUser) {
return;
}
if (debounceTime && debounceTime > 0) {
this.processDebounce(this.userMessageDebounce, content, remoteJid, debounceTime, async (debouncedContent) => {
await this.typebotService.processTypebot(

View File

@@ -741,6 +741,10 @@ export class TypebotService {
}
}
if (session && !session.awaitUser) {
return;
}
if (session && session.status !== 'opened') {
return;
}