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:
Joelute
2023-04-19 01:00:47 -04:00
committed by Tim Abbott
parent 596abf6190
commit e999518d9a
8 changed files with 78 additions and 5 deletions

View File

@@ -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;
}
}