From c9a17d19bbd1489570118d6d5cb84f305f803328 Mon Sep 17 00:00:00 2001 From: Walk4Muscle Date: Wed, 28 Mar 2018 14:58:23 +0800 Subject: [PATCH] fix bug wrong invoke function at line51 --- src/timeout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timeout.ts b/src/timeout.ts index 97b209b..9b13328 100644 --- a/src/timeout.ts +++ b/src/timeout.ts @@ -48,7 +48,7 @@ export class Timeout { send: function (event: any, next: Function) { const convoId = event.address.conversation.id; if (event.type === endOfConversation) { - _this.clearTimeoutHandlers(event); + _this.clearTimeoutHandlers(convoId); _this.timeoutStore.removeConvoFromStore(convoId); } if (event.type !== endOfConversation && _this.timeoutStore.getPromptHandlerFor(convoId) === null) { @@ -104,4 +104,4 @@ export class Timeout { export function setConversationTimeout(bot: builder.UniversalBot, options: TimeoutOptions) { new Timeout(bot, options).init(); -} \ No newline at end of file +}