Skip to content

Commit 247c39f

Browse files
committed
fix: expiration time being useless when not awaitUser
1 parent ada63b5 commit 247c39f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/api/integrations/chatbot/typebot/controllers/typebot.controller.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,11 +1016,7 @@ export class TypebotController extends ChatbotController implements ChatbotContr
10161016

10171017
if (!listeningFromMe && key.fromMe) {
10181018
return;
1019-
}
1020-
1021-
if (session && !session.awaitUser) {
1022-
return;
1023-
}
1019+
}
10241020

10251021
if (debounceTime && debounceTime > 0) {
10261022
this.processDebounce(this.userMessageDebounce, content, remoteJid, debounceTime, async (debouncedContent) => {

src/api/integrations/chatbot/typebot/services/typebot.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,10 @@ export class TypebotService {
741741
}
742742
}
743743

744+
if (session && !session.awaitUser) {
745+
return;
746+
}
747+
744748
if (session && session.status !== 'opened') {
745749
return;
746750
}

0 commit comments

Comments
 (0)