0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-14 22:11:47 +01:00

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

This reverts commit c3f9d8e41b.
This commit is contained in:
Emmanuel ROHEE 2014-09-08 11:09:14 +02:00
parent c3f9d8e41b
commit 24f0bb4af5

View file

@ -63,7 +63,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
if (window.Notification) {
// Show notification when the user is idle
if (matrixService.presence.unavailable === mPresence.getState()) {
if (matrixService.presence.offline === 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