mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
message_list: Move show_message_as_read to view layer.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user