Add option to disable /syncing with custom puppets

This commit is contained in:
Tulir Asokan
2018-07-21 11:23:34 -04:00
parent 54d7ac5542
commit e4e100a184
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -191,6 +191,7 @@ class Config(DictWithRecursion):
copy("bridge.public_portals")
copy("bridge.native_stickers")
copy("bridge.catch_up")
copy("bridge.sync_with_custom_puppets")
if "bridge.message_formats.m_text" in self:
del self["bridge.message_formats"]
+2 -1
View File
@@ -107,7 +107,8 @@ class Puppet:
if mxid != self.custom_mxid:
return 2
return 1
asyncio.ensure_future(self.sync(), loop=self.loop)
if config["bridge.sync_with_custom_puppets"]:
asyncio.ensure_future(self.sync(), loop=self.loop)
return 0
def create_sync_filter(self) -> Awaitable[str]: