mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Only create notifications for unread messages
In some cases, we have already received a read receipt for an incoming message by the time we go to create a notification about it. In this case, we should skip the notification. // FREEBIE
This commit is contained in:
@@ -357,7 +357,9 @@
|
||||
message.save().then(function() {
|
||||
conversation.save().then(function() {
|
||||
conversation.trigger('newmessage', message);
|
||||
conversation.notify(message);
|
||||
if (message.get('unread')) {
|
||||
conversation.notify(message);
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user