Update mautrix-python. Fixes #472

This commit is contained in:
Tulir Asokan
2020-12-02 00:34:13 +02:00
parent 140fcae403
commit 0b8fa5ea06
3 changed files with 6 additions and 4 deletions
+1 -3
View File
@@ -94,9 +94,7 @@ class MatrixHandler(BaseMatrixHandler):
except MatrixError:
pass
portal.mxid = room_id
e2be_ok = None
if self.config["bridge.encryption.default"] and self.e2ee:
e2be_ok = await portal.enable_dm_encryption()
e2be_ok = await portal.check_dm_encryption()
await portal.save()
await inviter.register_portal(portal)
if e2be_ok is True:
+4
View File
@@ -181,6 +181,10 @@ class BasePortal(MautrixBasePortal, ABC):
elif self.peer_type == "channel":
return PeerChannel(channel_id=self.tgid)
@property
def is_direct(self) -> bool:
return self.peer_type == "user"
@property
def has_bot(self) -> bool:
return (bool(self.bot)