Roll back broken audio, keep notifications.
This commit is contained in:
@@ -253,7 +253,7 @@ func (c *Config) findUser(address string, username string) *eUser {
|
||||
func (c *Config) ToggleMute(u *gumble.User) {
|
||||
j := c.findUser(u.GetClient().Config.Address, u.Name)
|
||||
j.LocallyMuted = !j.LocallyMuted
|
||||
u.SetLocallyMuted(j.LocallyMuted)
|
||||
u.LocallyMuted = j.LocallyMuted
|
||||
c.SaveConfig()
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ func (c *Config) UpdateUser(u *gumble.User) {
|
||||
j = c.findUser(uc.Config.Address, u.Name)
|
||||
u.Boost = j.Boost
|
||||
u.Volume = j.Volume
|
||||
u.SetLocallyMuted(j.LocallyMuted)
|
||||
u.LocallyMuted = j.LocallyMuted // Update LocallyMuted state from config
|
||||
if u.Boost < 1 {
|
||||
u.Boost = 1
|
||||
}
|
||||
@@ -343,7 +343,7 @@ func (c *Config) UpdateConfig(u *gumble.User) {
|
||||
j = c.findUser(u.GetClient().Config.Address, u.Name)
|
||||
j.Boost = u.Boost
|
||||
j.Volume = u.Volume
|
||||
j.LocallyMuted = u.IsLocallyMuted()
|
||||
j.LocallyMuted = u.LocallyMuted // Save LocallyMuted state to config
|
||||
}
|
||||
|
||||
func NewConfig(fn *string) *Config {
|
||||
|
||||
Reference in New Issue
Block a user