Only show unread notifications in the title bar if a message is shown in the home view.

(imported from commit 795a6cb55d480c57e84ea5e17ef3afdc5d62d68b)
This commit is contained in:
Leo Franchi
2013-02-22 16:23:27 -05:00
parent ad71168f77
commit d08b8459ed

View File

@@ -199,7 +199,7 @@ exports.received_messages = function (messages) {
} }
$.each(messages, function (index, message) { $.each(messages, function (index, message) {
if (message.sender_email !== email) { if (message.sender_email !== email && narrow.in_home(message)) {
new_message_count++; new_message_count++;
title_needs_update = true; title_needs_update = true;