Skip to content

Commit

Permalink
Ignore advertised login flows as synapse is broken (ref matrix-org/sy…
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 8, 2020
1 parent 8d11155 commit 1770e30
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mautrix/bridge/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ async def init_as_bot(self) -> None:
async def init_encryption(self) -> None:
if self.e2ee:
if not await self.e2ee.check_server_support():
self.log.error("Encryption enabled in config, but homeserver does not "
"support appservice login")
self.e2ee = None
else:
await self.e2ee.start()
# Element iOS is broken, so the devs decided to break Synapse as well, which means
# there's no reliable way to check if appservice login is supported.
# Print a warning in the logs, then try to log in anyway and hope for the best.
self.log.warning("Encryption enabled in config, but homeserver does not advertise "
"appservice login")
await self.e2ee.start()

@staticmethod
async def allow_message(user: 'BaseUser') -> bool:
Expand Down

0 comments on commit 1770e30

Please sign in to comment.