Add option to disable call start/end notifications. Fixes #68
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user