Added startMute and startDeaf as configuration options

This commit is contained in:
joker-x 2020-09-13 18:42:47 +02:00 committed by Jonas Herzig
parent e641906c87
commit 78161b3a2c
2 changed files with 5 additions and 3 deletions

View file

@ -36,6 +36,8 @@ window.mumbleWebConfig = {
'matrix': false, // enable Matrix Widget support (mostly auto-detected; implies 'joinDialog')
'avatarurl': '', // download and set the user's Mumble avatar to the image at this URL
// General
'theme': 'MetroMumbleLight'
'theme': 'MetroMumbleLight',
'startMute': false,
'startDeaf': false
}
}

View file

@ -302,8 +302,8 @@ class GlobalBindings {
this.messageBox = ko.observable('')
this.toolbarHorizontal = ko.observable(!this.settings.toolbarVertical)
this.selected = ko.observable()
this.selfMute = ko.observable()
this.selfDeaf = ko.observable()
this.selfMute = ko.observable(this.config.defaults.startMute)
this.selfDeaf = ko.observable(this.config.defaults.startDeaf)
this.selfMute.subscribe(mute => {
if (voiceHandler) {