Add option to disable call start/end notifications. Fixes #68

This commit is contained in:
Tulir Asokan
2019-08-24 22:42:03 +03:00
parent 07d43c4825
commit 80a0edd855
3 changed files with 22 additions and 0 deletions

View File

@ -41,6 +41,11 @@ type BridgeConfig struct {
ReportConnectionRetry bool `yaml:"report_connection_retry"`
ContactWaitDelay int `yaml:"contact_wait_delay"`
CallNotices struct {
Start bool `yaml:"start"`
End bool `yaml:"end"`
} `yaml:"call_notices"`
InitialChatSync int `yaml:"initial_chat_sync_count"`
InitialHistoryFill int `yaml:"initial_history_fill_count"`
RecoverChatSync int `yaml:"recovery_chat_sync_count"`
@ -71,6 +76,9 @@ func (bc *BridgeConfig) setDefaults() {
bc.ReportConnectionRetry = true
bc.ContactWaitDelay = 1
bc.CallNotices.Start = true
bc.CallNotices.End = true
bc.InitialChatSync = 10
bc.InitialHistoryFill = 20
bc.RecoverChatSync = -1