Update mautrix-go

This commit is contained in:
Tulir Asokan 2023-06-05 18:18:48 +03:00
parent 16a5b7fd8e
commit 9843ba048f
4 changed files with 8 additions and 3 deletions

View file

@ -154,6 +154,7 @@ func DoUpgrade(helper *up.Helper) {
helper.Copy(up.Bool, "bridge", "encryption", "rotation", "enable_custom") helper.Copy(up.Bool, "bridge", "encryption", "rotation", "enable_custom")
helper.Copy(up.Int, "bridge", "encryption", "rotation", "milliseconds") helper.Copy(up.Int, "bridge", "encryption", "rotation", "milliseconds")
helper.Copy(up.Int, "bridge", "encryption", "rotation", "messages") helper.Copy(up.Int, "bridge", "encryption", "rotation", "messages")
helper.Copy(up.Bool, "bridge", "encryption", "rotation", "disable_device_change_key_rotation")
if prefix, ok := helper.Get(up.Str, "appservice", "provisioning", "prefix"); ok { if prefix, ok := helper.Get(up.Str, "appservice", "provisioning", "prefix"); ok {
helper.Set(up.Str, strings.TrimSuffix(prefix, "/v1"), "bridge", "provisioning", "prefix") helper.Set(up.Str, strings.TrimSuffix(prefix, "/v1"), "bridge", "provisioning", "prefix")
} else { } else {

View file

@ -413,6 +413,10 @@ bridge:
# default. # default.
messages: 100 messages: 100
# Disable rotating keys when a user's devices change?
# You should not enable this option unless you understand all the implications.
disable_device_change_key_rotation: false
# Settings for provisioning API # Settings for provisioning API
provisioning: provisioning:
# Prefix for the provisioning API paths. # Prefix for the provisioning API paths.

2
go.mod
View file

@ -18,7 +18,7 @@ require (
golang.org/x/net v0.10.0 golang.org/x/net v0.10.0
google.golang.org/protobuf v1.30.0 google.golang.org/protobuf v1.30.0
maunium.net/go/maulogger/v2 v2.4.1 maunium.net/go/maulogger/v2 v2.4.1
maunium.net/go/mautrix v0.15.3-0.20230531113908-fa42f8c7c587 maunium.net/go/mautrix v0.15.3-0.20230605151437-f71a26085e1a
) )
require ( require (

4
go.sum
View file

@ -131,5 +131,5 @@ maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA= maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
maunium.net/go/maulogger/v2 v2.4.1 h1:N7zSdd0mZkB2m2JtFUsiGTQQAdP0YeFWT7YMc80yAL8= maunium.net/go/maulogger/v2 v2.4.1 h1:N7zSdd0mZkB2m2JtFUsiGTQQAdP0YeFWT7YMc80yAL8=
maunium.net/go/maulogger/v2 v2.4.1/go.mod h1:omPuYwYBILeVQobz8uO3XC8DIRuEb5rXYlQSuqrbCho= maunium.net/go/maulogger/v2 v2.4.1/go.mod h1:omPuYwYBILeVQobz8uO3XC8DIRuEb5rXYlQSuqrbCho=
maunium.net/go/mautrix v0.15.3-0.20230531113908-fa42f8c7c587 h1:Qz7Vt17cYDssit23y2l8kpURS1YKq0GFoFGluS+KYaU= maunium.net/go/mautrix v0.15.3-0.20230605151437-f71a26085e1a h1:M7iaSu1wJLdsa77g1Ak1ow9G4KoLKsyowuNQ/3dAlwA=
maunium.net/go/mautrix v0.15.3-0.20230531113908-fa42f8c7c587/go.mod h1:h4NwfKqE4YxGTLSgn/gawKzXAb2sF4qx8agL6QEFtGg= maunium.net/go/mautrix v0.15.3-0.20230605151437-f71a26085e1a/go.mod h1:h4NwfKqE4YxGTLSgn/gawKzXAb2sF4qx8agL6QEFtGg=