Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typing-events: Use valid channel ID to get conversation typists.

Lauryn Menardae66bf287b63
diff --git a/web/src/typing_events.ts b/web/src/typing_events.ts
index fe041b51e96..e29ad4b78cf 100644
--- a/web/src/typing_events.ts
+++ b/web/src/typing_events.ts
@@ -76,10 +76,10 @@ type TypingMessageEditEvent = z.output<typeof typing_edit_message_event_schema>;
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);