Edit message with regenerated QR code when logging in

This commit is contained in:
Tulir Asokan
2019-07-18 00:14:04 +03:00
parent 7f0a0df7de
commit 91e8000c14
3 changed files with 67 additions and 16 deletions

View File

@ -34,6 +34,7 @@ type BridgeConfig struct {
DisplaynameTemplate string `yaml:"displayname_template"`
ConnectionTimeout int `yaml:"connection_timeout"`
LoginQRRegenCount int `yaml:"login_qr_regen_count"`
MaxConnectionAttempts int `yaml:"max_connection_attempts"`
ConnectionRetryDelay int `yaml:"connection_retry_delay"`
ReportConnectionRetry bool `yaml:"report_connection_retry"`
@ -62,6 +63,7 @@ type BridgeConfig struct {
func (bc *BridgeConfig) setDefaults() {
bc.ConnectionTimeout = 20
bc.LoginQRRegenCount = 2
bc.MaxConnectionAttempts = 3
bc.ConnectionRetryDelay = -1
bc.ReportConnectionRetry = true