Disable notifying on sending outside view for now.

It's somewhat buggy, and has thus been annoying our internal users, so
better to disable it until we can fix the bugs.

(imported from commit f981791d32d321b0cfe06b4a337e26ab48832bb3)
This commit is contained in:
Tim Abbott
2013-11-04 17:30:09 -05:00
parent 792b283dcd
commit 8853d86b17
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {