Merge pull request #2845 from matrix-org/bwindels/notifier-this

Notifier is how singleton is known outside of this module
pull/21833/head
Bruno Windels 2019-03-29 15:45:38 +00:00 committed by GitHub
commit 1f084b2ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -226,8 +226,8 @@ const Notifier = {
return false;
}
const isGuest = client.isGuest();
return !isGuest && Notifier.supportsDesktopNotifications() &&
!Notifier.isEnabled() && !Notifier._isToolbarHidden();
return !isGuest && this.supportsDesktopNotifications() &&
!this.isEnabled() && !this._isToolbarHidden();
},
_isToolbarHidden: function() {