1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Factor out audio bings to a separate setting

Some people are sad about bings on the desktop app. Make it turn-off-able.
This commit is contained in:
Richard van der Hoff
2016-03-10 10:59:40 +00:00
parent ec2e27a754
commit c5e03913d9
2 changed files with 46 additions and 21 deletions

View File

@@ -58,6 +58,14 @@ module.exports = {
Notifier.setEnabled(enable);
},
getEnableAudioNotifications: function() {
return Notifier.isAudioEnabled();
},
setEnableAudioNotifications: function(enable) {
Notifier.setAudioEnabled(enable);
},
changePassword: function(old_password, new_password) {
var cli = MatrixClientPeg.get();