diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js index b557dd10e3..701301b12f 100644 --- a/static/js/message_list_view.js +++ b/static/js/message_list_view.js @@ -79,11 +79,9 @@ function add_display_time(group, message_container, prev) { } 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 (!page_params.realm_allow_message_editing) { - return; - } // 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.handlebars b/static/templates/recipient_row.handlebars index 3302f0553b..866c37a385 100644 --- a/static/templates/recipient_row.handlebars +++ b/static/templates/recipient_row.handlebars @@ -33,15 +33,12 @@ {{! edit subject pencil icon }} {{#if always_visible_topic_edit}} - + {{else}} {{#if on_hover_topic_edit}} - - {{else}} - + {{/if}} {{/if}} - {{! exterior links (e.g. to a trac ticket) }} {{#each subject_links}}