mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
user_settings: Add option to only read messages on scroll in topic.
After merging #24309, we want to add an additional option to the "mark messages as read on scroll" setting where we only mark messages as read on scroll in conversation views.
This commit is contained in:
@@ -1101,4 +1101,12 @@ export class Filter {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
is_conversation_view() {
|
||||
const term_type = this.sorted_term_types();
|
||||
if (_.isEqual(term_type, ["stream", "topic"]) || _.isEqual(term_type, ["pm-with"])) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user