mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +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:
@@ -184,12 +184,19 @@ export class MessageList {
|
||||
* The user has "Mark messages as read on scroll" option
|
||||
turned on in their user settings.
|
||||
*/
|
||||
const filter = this.data.filter;
|
||||
const is_conversation_view = filter === undefined ? false : filter.is_conversation_view();
|
||||
return (
|
||||
this.data.can_mark_messages_read() &&
|
||||
!this.reading_prevented &&
|
||||
!(
|
||||
user_settings.web_mark_read_on_scroll_policy ===
|
||||
web_mark_read_on_scroll_policy_values.never.code
|
||||
) &&
|
||||
!(
|
||||
user_settings.web_mark_read_on_scroll_policy ===
|
||||
web_mark_read_on_scroll_policy_values.conversation_only.code &&
|
||||
!is_conversation_view
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user