From a2d88b4fad00c6ba55eb57643cf6b0b0e373b8a6 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 24 Mar 2015 18:12:11 -0700 Subject: [PATCH] Don't trigger notifications for sync messages --- js/models/messages.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/models/messages.js b/js/models/messages.js index 3e6e4073..54fe26b0 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -201,8 +201,10 @@ conversation.save().then(function() { message.save().then(function() { - extension.trigger('message', message); // notify frontend listeners - notifyConversation(message); + extension.trigger('message', message); // inbox fetch + if (message.isIncoming()) { + notifyConversation(message); + } }); }); });