Add option to update m.direct with double puppeting

This commit is contained in:
Tulir Asokan
2020-08-21 21:20:49 +03:00
parent 292745866d
commit 66917b6db0
7 changed files with 33 additions and 6 deletions
+3
View File
@@ -48,6 +48,8 @@ class Config(BaseBridgeConfig):
super().do_update(helper)
copy, copy_dict, base = helper
copy("homeserver.asmux")
if "appservice.protocol" in self and "appservice.address" not in self:
protocol, hostname, port = (self["appservice.protocol"], self["appservice.hostname"],
self["appservice.port"])
@@ -102,6 +104,7 @@ class Config(BaseBridgeConfig):
copy("bridge.plaintext_highlights")
copy("bridge.public_portals")
copy("bridge.sync_with_custom_puppets")
copy("bridge.sync_direct_chat_list")
copy("bridge.login_shared_secret")
copy("bridge.telegram_link_preview")
copy("bridge.inline_images")