ソースを参照

Update mautrix-go and add option to use MSC2409/MSC3202 for e2be data

Tulir Asokan 2 年 前
コミット
8f6f98acce
4 ファイル変更6 行追加3 行削除
  1. 1 0
      config/upgrade.go
  2. 2 0
      example-config.yaml
  3. 1 1
      go.mod
  4. 2 2
      go.sum

+ 1 - 0
config/upgrade.go

@@ -51,6 +51,7 @@ func DoUpgrade(helper *up.Helper) {
 	helper.Copy(up.Bool, "bridge", "encryption", "allow")
 	helper.Copy(up.Bool, "bridge", "encryption", "default")
 	helper.Copy(up.Bool, "bridge", "encryption", "require")
+	helper.Copy(up.Bool, "bridge", "encryption", "appservice")
 	helper.Copy(up.Bool, "bridge", "encryption", "allow_key_sharing")
 	helper.Copy(up.Str, "bridge", "encryption", "verification_levels", "receive")
 	helper.Copy(up.Str, "bridge", "encryption", "verification_levels", "send")

+ 2 - 0
example-config.yaml

@@ -155,6 +155,8 @@ bridge:
         # Default to encryption, force-enable encryption in all portals the bridge creates
         # This will cause the bridge bot to be in private chats for the encryption to work properly.
         default: false
+        # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
+        appservice: false
         # Require encryption, drop any unencrypted messages.
         require: false
         # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.

+ 1 - 1
go.mod

@@ -12,7 +12,7 @@ require (
 	github.com/stretchr/testify v1.8.0
 	github.com/yuin/goldmark v1.4.13
 	maunium.net/go/maulogger/v2 v2.3.2
-	maunium.net/go/mautrix v0.12.1-0.20220913092330-83f76bc2564a
+	maunium.net/go/mautrix v0.12.1-0.20220914153054-e61df9ab8b9b
 )
 
 require (

+ 2 - 2
go.sum

@@ -73,5 +73,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/maulogger/v2 v2.3.2 h1:1XmIYmMd3PoQfp9J+PaHhpt80zpfmMqaShzUTC7FwY0=
 maunium.net/go/maulogger/v2 v2.3.2/go.mod h1:TYWy7wKwz/tIXTpsx8G3mZseIRiC5DoMxSZazOHy68A=
-maunium.net/go/mautrix v0.12.1-0.20220913092330-83f76bc2564a h1:p1lHsdZ+RzCg4b4aqjSCTwBihcPpKF1SA08b6NSTRuE=
-maunium.net/go/mautrix v0.12.1-0.20220913092330-83f76bc2564a/go.mod h1:/jxQFIipObSsjZPH6o3xyUi8uoULz3Hfr/8p9loqpYE=
+maunium.net/go/mautrix v0.12.1-0.20220914153054-e61df9ab8b9b h1:VxVYn9Z8QDKkoNzPR1weXO1cyXapVaiKyljzoybS4Ok=
+maunium.net/go/mautrix v0.12.1-0.20220914153054-e61df9ab8b9b/go.mod h1:/jxQFIipObSsjZPH6o3xyUi8uoULz3Hfr/8p9loqpYE=