message_list: Move show_message_as_read to view layer.

This commit is contained in:
Tim Abbott
2023-04-21 09:02:38 -07:00
parent c99c71a9a5
commit c8f1325281
4 changed files with 15 additions and 15 deletions

View File

@@ -394,16 +394,6 @@ export class MessageList {
$recipient_row.find(".always_visible_topic_edit").show();
}
show_message_as_read(message, options) {
const $row = this.get_row(message.id);
if (options.from === "pointer" || options.from === "server") {
$row.find(".unread_marker").addClass("fast_fade");
} else {
$row.find(".unread_marker").addClass("slow_fade");
}
$row.removeClass("unread");
}
reselect_selected_id() {
const selected_id = this.data.selected_id();