summary refs log tree commit diff
path: root/syweb/webclient/components
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-14 15:57:18 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-14 15:57:18 +0000
commit78bf5648e79b9a1f94f4b52e9c37227b79a899b2 (patch)
treeb03131865580113d3c5f07f1c8524c91e0dd3769 /syweb/webclient/components
parentTidy up room.html member list to use member again, now that scope.members is ... (diff)
downloadsynapse-78bf5648e79b9a1f94f4b52e9c37227b79a899b2.tar.xz
Fix bug which caused notifications to appear for old messages.
Diffstat (limited to '')
-rw-r--r--syweb/webclient/components/matrix/event-handler-service.js4
1 files changed, 3 insertions, 1 deletions
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