Don't trigger notifications for sync messages

This commit is contained in:
lilia 2015-03-24 18:12:11 -07:00
parent 923bb8bbc9
commit a2d88b4fad

View file

@ -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);
}
});
});
});