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

Notifier is how singleton is known outside of this module
This commit is contained in:
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

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() {