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

@@ -1577,4 +1577,14 @@ export class MessageListView {
stream_color.update_stream_recipient_color($stream_header);
}
}
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");
}
}