Add config flags for backspace behavior. Fixes #322

This commit is contained in:
Tulir Asokan
2021-11-11 00:26:53 +02:00
parent e3094f4f80
commit 98db812df1
4 changed files with 41 additions and 36 deletions

View File

@ -69,6 +69,9 @@ type Config struct {
NotifySound bool `yaml:"notify_sound"`
SendToVerifiedOnly bool `yaml:"send_to_verified_only"`
Backspace1RemovesWord bool `yaml:"backspace1_removes_word"`
Backspace2RemovesWord bool `yaml:"backspace2_removes_word"`
Dir string `yaml:"-"`
DataDir string `yaml:"data_dir"`
CacheDir string `yaml:"cache_dir"`
@ -101,8 +104,9 @@ func NewConfig(configDir, dataDir, cacheDir, downloadDir string) *Config {
RoomCacheSize: 32,
RoomCacheAge: 1 * 60,
NotifySound: true,
SendToVerifiedOnly: false,
NotifySound: true,
SendToVerifiedOnly: false,
Backspace1RemovesWord: true,
}
}