Make WhatsApp device name configurable
This commit is contained in:
@ -66,6 +66,11 @@ type Config struct {
|
||||
Listen string `yaml:"listen"`
|
||||
} `yaml:"metrics"`
|
||||
|
||||
WhatsApp struct {
|
||||
DeviceName string `yaml:"device_name"`
|
||||
ShortName string `yaml:"short_name"`
|
||||
} `yaml:"whatsapp"`
|
||||
|
||||
Bridge BridgeConfig `yaml:"bridge"`
|
||||
|
||||
Logging appservice.LogConfig `yaml:"logging"`
|
||||
@ -74,6 +79,8 @@ type Config struct {
|
||||
func (config *Config) setDefaults() {
|
||||
config.AppService.Database.MaxOpenConns = 20
|
||||
config.AppService.Database.MaxIdleConns = 2
|
||||
config.WhatsApp.DeviceName = "Mautrix-WhatsApp bridge"
|
||||
config.WhatsApp.ShortName = "mx-wa"
|
||||
config.Bridge.setDefaults()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user