mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-08 16:42:41 -04:00
Fix bug which caused notifications to appear for old messages.
This commit is contained in:
parent
c3278a8262
commit
78bf5648e7
2 changed files with 9 additions and 9 deletions
|
@ -188,7 +188,9 @@ function(matrixService, $rootScope, $q, $timeout, $filter, mPresence, notificati
|
|||
|
||||
if (event.user_id !== matrixService.config().user_id) {
|
||||
room.addMessageEvent(event, !isLiveEvent);
|
||||
displayNotification(event);
|
||||
if (isLiveEvent) {
|
||||
displayNotification(event);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// we may have locally echoed this, so we should replace the event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue