From 78bf5648e79b9a1f94f4b52e9c37227b79a899b2 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 14 Nov 2014 15:57:18 +0000 Subject: Fix bug which caused notifications to appear for old messages. --- syweb/webclient/components/matrix/event-handler-service.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'syweb/webclient/components') diff --git a/syweb/webclient/components/matrix/event-handler-service.js b/syweb/webclient/components/matrix/event-handler-service.js index efe7bf234c..e9540bd5c0 100644 --- a/syweb/webclient/components/matrix/event-handler-service.js +++ b/syweb/webclient/components/matrix/event-handler-service.js @@ -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 -- cgit 1.5.1