Selaa lähdekoodia

Add config option to use AS transactions for e2be

Tulir Asokan 2 vuotta sitten
vanhempi
sitoutus
46a48541aa
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 1 0
      config/upgrade.go
  2. 2 0
      example-config.yaml

+ 1 - 0
config/upgrade.go

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

+ 2 - 0
example-config.yaml

@@ -316,6 +316,8 @@ bridge:
         # This will cause the bridge bot to be in private chats for the encryption to work properly.
         # This will cause the bridge bot to be in private chats for the encryption to work properly.
         # It is recommended to also set private_chat_portal_meta to true when using this.
         # It is recommended to also set private_chat_portal_meta to true when using this.
         default: false
         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 encryption, drop any unencrypted messages.
         require: false
         require: false
         # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
         # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.