Skip to content
Snippets Groups Projects
Commit c3f9d8e4 authored by Emmanuel ROHEE's avatar Emmanuel ROHEE
Browse files

BF: Made notification work again (forgot to renamed "offline" to "unavailable")

parent 6e341aeb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment