Fix bug which caused notifications to appear for old messages.

This commit is contained in:
Kegan Dougal 2014-11-14 15:57:18 +00:00
parent c3278a8262
commit 78bf5648e7
2 changed files with 9 additions and 9 deletions

View file

@ -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