From d5387bba41d064b1dd95da3b7517359d4337dd1a Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 16 Nov 2021 13:07:29 -0700 Subject: [PATCH] config: add message_send_checkpoint_endpoint --- config/config.go | 9 +++++---- config/upgrade.go | 1 + example-config.yaml | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index c43f191..78ad457 100644 --- a/config/config.go +++ b/config/config.go @@ -29,10 +29,11 @@ var ExampleConfig string type Config struct { Homeserver struct { - Address string `yaml:"address"` - Domain string `yaml:"domain"` - Asmux bool `yaml:"asmux"` - StatusEndpoint string `yaml:"status_endpoint"` + Address string `yaml:"address"` + Domain string `yaml:"domain"` + Asmux bool `yaml:"asmux"` + StatusEndpoint string `yaml:"status_endpoint"` + MessageSendCheckpointEndpoint string `yaml:"message_send_checkpoint_endpoint"` } `yaml:"homeserver"` AppService struct { diff --git a/config/upgrade.go b/config/upgrade.go index 6ecb423..62c2585 100644 --- a/config/upgrade.go +++ b/config/upgrade.go @@ -31,6 +31,7 @@ func (helper *UpgradeHelper) doUpgrade() { helper.Copy(Str, "homeserver", "domain") helper.Copy(Bool, "homeserver", "asmux") helper.Copy(Str|Null, "homeserver", "status_endpoint") + helper.Copy(Str|Null, "homeserver", "message_send_checkpoint_endpoint") helper.Copy(Str, "appservice", "address") helper.Copy(Str, "appservice", "hostname") diff --git a/example-config.yaml b/example-config.yaml index 9f31ddf..83dbd07 100644 --- a/example-config.yaml +++ b/example-config.yaml @@ -11,6 +11,8 @@ homeserver: # If set, the bridge will make POST requests to this URL whenever a user's whatsapp connection state changes. # The bridge will use the appservice as_token to authorize requests. status_endpoint: null + # Endpoint for reporting per-message status. + message_send_checkpoint_endpoint: null # Application service host/registration related details. # Changing these values requires regeneration of the registration.