diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-16 14:20:26 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-16 15:35:23 +0100 |
commit | b170fe921e327d8d1be9768d30305ba953ccae9f (patch) | |
tree | 951f63d54ea01912f475396a6fa010f76a5009c5 /webclient/room | |
parent | Time out calls from both ends properly. (diff) | |
download | synapse-b170fe921e327d8d1be9768d30305ba953ccae9f.tar.xz |
Added a section on bing words if you enable desktop notifications.
Diffstat (limited to 'webclient/room')
-rw-r--r-- | webclient/room/room-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index 2c9a3836e7..4a91d298bc 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -139,7 +139,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) if (isLive && event.room_id === $scope.room_id) { scrollToBottom(); - + if (window.Notification) { // Show notification when the window is hidden, or the user is idle if (document.hidden || matrixService.presence.unavailable === mPresence.getState()) { |