summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmmanuel ROHEE <manu@Emmanuels-MacBook-Pro.local>2014-09-08 10:28:07 +0200
committerEmmanuel ROHEE <manu@Emmanuels-MacBook-Pro.local>2014-09-08 10:28:07 +0200
commitc3f9d8e41bf2d23f676a10ec4579434a94b1fc39 (patch)
tree9180ac41d1071089e751518304c651d0f4f67b55
parentdedup all events (diff)
downloadsynapse-c3f9d8e41bf2d23f676a10ec4579434a94b1fc39.tar.xz
BF: Made notification work again (forgot to renamed "offline" to "unavailable")
-rw-r--r--webclient/room/room-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index c738b490e2..1c496d7213 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -63,7 +63,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
 
             if (window.Notification) {
                 // Show notification when the user is idle
-                if (matrixService.presence.offline === mPresence.getState()) {
+                if (matrixService.presence.unavailable === mPresence.getState()) {
                     var notification = new window.Notification(
                         ($scope.members[event.user_id].displayname || event.user_id) +
                         " (" + ($scope.room_alias || $scope.room_id) + ")", // FIXME: don't leak room_ids here