Don't trigger notifications for sync messages
This commit is contained in:
parent
923bb8bbc9
commit
a2d88b4fad
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue