mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
Merge pull request #1264 from ygorsantana/fix/expiration-useless
Fix: Expiration being useless on awaitUser false
This commit is contained in:
commit
4fadf64bae
@ -1018,10 +1018,6 @@ export class TypebotController extends ChatbotController implements ChatbotContr
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session && !session.awaitUser) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (debounceTime && debounceTime > 0) {
|
if (debounceTime && debounceTime > 0) {
|
||||||
this.processDebounce(this.userMessageDebounce, content, remoteJid, debounceTime, async (debouncedContent) => {
|
this.processDebounce(this.userMessageDebounce, content, remoteJid, debounceTime, async (debouncedContent) => {
|
||||||
await this.typebotService.processTypebot(
|
await this.typebotService.processTypebot(
|
||||||
|
@ -741,6 +741,10 @@ export class TypebotService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (session && !session.awaitUser) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (session && session.status !== 'opened') {
|
if (session && session.status !== 'opened') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user