diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 1c496d721322b2cd3323af65dce952345c93a280..c738b490e2e0cceac66eb0373a35241349258c1d 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.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