mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
recent_topics: Add action to mark topic as read.
This commit is contained in:
@@ -346,6 +346,15 @@ exports.initialize = function () {
|
||||
muting_ui.mute(stream_id, topic);
|
||||
});
|
||||
|
||||
// RECENT TOPICS
|
||||
|
||||
$('body').on('click', '.on_hover_topic_read', function (e) {
|
||||
e.stopPropagation();
|
||||
const stream_id = parseInt($(e.currentTarget).attr('data-stream-id'), 10);
|
||||
const topic = $(e.currentTarget).attr('data-topic-name');
|
||||
unread_ops.mark_topic_as_read(stream_id, topic);
|
||||
});
|
||||
|
||||
// RECIPIENT BARS
|
||||
|
||||
function get_row_id_for_narrowing(narrow_link_elem) {
|
||||
|
||||
Reference in New Issue
Block a user