From 2e6eeabac601af0090b8c13bd9bf96824fb31102 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Thu, 27 Mar 2025 16:29:36 +0100 Subject: [PATCH] typing-events: Use valid channel ID to get conversation typists. (cherry picked from commit ae66bf287b63a1d7479937c85f4f8585e5ad93a5) --- web/src/typing_events.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/typing_events.ts b/web/src/typing_events.ts index fe041b51e9..e29ad4b78c 100644 --- a/web/src/typing_events.ts +++ b/web/src/typing_events.ts @@ -76,10 +76,10 @@ type TypingMessageEditEvent = z.output; function get_users_typing_for_narrow(): number[] { if (narrow_state.narrowed_by_topic_reply()) { - const current_stream_id = narrow_state.stream_id(); + const current_stream_id = narrow_state.stream_id(narrow_state.filter(), true); const current_topic = narrow_state.topic(); if (current_stream_id === undefined) { - // narrowed to a stream which doesn't exist. + // Narrowed to a channel which doesn't exist. return []; } assert(current_topic !== undefined);