diff --git a/src/conversation.ts b/src/conversation.ts index 0e3f830..9e377f1 100644 --- a/src/conversation.ts +++ b/src/conversation.ts @@ -960,7 +960,9 @@ export class ConversationHandle { opts?: OtherwiseConfig, ): Promise { const { otherwise, drop, maxMilliseconds } = toObj(opts); - const ctx = await this.wait({ maxMilliseconds }); + const ctx = maxMilliseconds + ? await this.wait({ maxMilliseconds }) + : await this.wait(); if (!await predicate(ctx)) { await otherwise?.(ctx); await this.skip({ drop });