Add option to send read receipt on confirmed delivery to WhatsApp

This commit is contained in:
Tulir Asokan
2020-05-25 11:17:47 +03:00
parent 2857b57c8e
commit c6b4f34c28
3 changed files with 19 additions and 0 deletions

View File

@ -37,6 +37,7 @@ type BridgeConfig struct {
ConnectionTimeout int `yaml:"connection_timeout"`
FetchMessageOnTimeout bool `yaml:"fetch_message_on_timeout"`
DeliveryReceipts bool `yaml:"delivery_receipts"`
LoginQRRegenCount int `yaml:"login_qr_regen_count"`
MaxConnectionAttempts int `yaml:"max_connection_attempts"`
ConnectionRetryDelay int `yaml:"connection_retry_delay"`
@ -81,6 +82,8 @@ type BridgeConfig struct {
func (bc *BridgeConfig) setDefaults() {
bc.ConnectionTimeout = 20
bc.FetchMessageOnTimeout = false
bc.DeliveryReceipts = false
bc.LoginQRRegenCount = 2
bc.MaxConnectionAttempts = 3
bc.ConnectionRetryDelay = -1