mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
typing-events: Use valid channel ID to get conversation typists.
(cherry picked from commit ae66bf287b
)
This commit is contained in:
committed by
Tim Abbott
parent
3f37ee7bc7
commit
2e6eeabac6
@@ -76,10 +76,10 @@ type TypingMessageEditEvent = z.output<typeof typing_edit_message_event_schema>;
|
|||||||
|
|
||||||
function get_users_typing_for_narrow(): number[] {
|
function get_users_typing_for_narrow(): number[] {
|
||||||
if (narrow_state.narrowed_by_topic_reply()) {
|
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();
|
const current_topic = narrow_state.topic();
|
||||||
if (current_stream_id === undefined) {
|
if (current_stream_id === undefined) {
|
||||||
// narrowed to a stream which doesn't exist.
|
// Narrowed to a channel which doesn't exist.
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
assert(current_topic !== undefined);
|
assert(current_topic !== undefined);
|
||||||
|
Reference in New Issue
Block a user