diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js index e8ec987bbd..baa776456b 100644 --- a/static/js/message_list_view.js +++ b/static/js/message_list_view.js @@ -128,6 +128,8 @@ function set_topic_edit_properties(group, message) { group.realm_allow_message_editing = page_params.realm_allow_message_editing; group.always_visible_topic_edit = false; group.on_hover_topic_edit = false; + // if a user who can edit a topic, can resolve it as well + group.user_can_resolve_topic = message_edit.is_topic_editable(message); // Messages with no topics should always have an edit icon visible // to encourage updating them. Admins can also edit any topic. diff --git a/static/templates/recipient_row.hbs b/static/templates/recipient_row.hbs index 026454601c..8e49e3dc1d 100644 --- a/static/templates/recipient_row.hbs +++ b/static/templates/recipient_row.hbs @@ -50,10 +50,12 @@ {{/if}} {{/if}} - {{#if topic_is_resolved}} - - {{else}} - + {{#if user_can_resolve_topic}} + {{#if topic_is_resolved}} + + {{else}} + + {{/if}} {{/if}} {{#if topic_muted}}