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);