diff --git a/static/js/feature_flags.js b/static/js/feature_flags.js index 5bfc965cd7..3130cef8a5 100644 --- a/static/js/feature_flags.js +++ b/static/js/feature_flags.js @@ -1,6 +1,5 @@ // The features below have all settled into their final states and can // be removed when we get a chance -exports.clicking_notification_causes_narrow = true; exports.reminders_in_message_action_menu = false; window.feature_flags = exports; diff --git a/static/js/notifications.js b/static/js/notifications.js index 30a7e635b9..c52bdc3bfc 100644 --- a/static/js/notifications.js +++ b/static/js/notifications.js @@ -408,9 +408,7 @@ function process_notification(notification) { }); notification_object.onclick = function () { notification_object.cancel(); - if (feature_flags.clicking_notification_causes_narrow) { - narrow.by_topic(message.id, {trigger: 'notification'}); - } + narrow.by_topic(message.id, {trigger: 'notification'}); window.focus(); }; notification_object.onclose = function () { @@ -429,9 +427,7 @@ function process_notification(notification) { // We don't need to bring the browser window into focus explicitly // by calling `window.focus()` as well as don't need to clear the // notification since it is the default behavior in Firefox. - if (feature_flags.clicking_notification_causes_narrow) { - narrow.by_topic(message.id, {trigger: 'notification'}); - } + narrow.by_topic(message.id, {trigger: 'notification'}); }; } else { in_browser_notify(message, title, content, raw_operators, opts);