diff --git a/static/js/feature_flags.js b/static/js/feature_flags.js index 3b9923dda0..194dd4633f 100644 --- a/static/js/feature_flags.js +++ b/static/js/feature_flags.js @@ -43,7 +43,7 @@ exports.left_side_userlist = page_params.staging || // Still very beta: exports.fade_users_when_composing = page_params.staging || is_customer4; exports.use_socket = page_params.staging; - +exports.notify_on_send_not_in_view = false; // Still burning in... exports.mark_read_at_bottom = true; diff --git a/static/js/notifications.js b/static/js/notifications.js index d1a4181ab7..a8418738bf 100644 --- a/static/js/notifications.js +++ b/static/js/notifications.js @@ -374,7 +374,7 @@ exports.received_messages = function (messages) { }; exports.possibly_notify_new_messages_outside_viewport = function (messages) { - if (page_params.domain !== "zulip.com") { + if (!feature_flags.notify_on_send_not_in_view) { return; } _.each(messages, function (message) { @@ -418,7 +418,7 @@ exports.possibly_notify_new_messages_outside_viewport = function (messages) { // for callback when we have to check with the server if a message should be in // the current_msg_list (!can_apply_locally; a.k.a. "a search"). exports.notify_messages_outside_current_search = function (messages) { - if (page_params.domain !== "zulip.com") { + if (!feature_flags.notify_on_send_not_in_view) { return; } _.each(messages, function (message) {