Update mautrix-python. Fixes #472
This commit is contained in:
@@ -94,9 +94,7 @@ class MatrixHandler(BaseMatrixHandler):
|
|||||||
except MatrixError:
|
except MatrixError:
|
||||||
pass
|
pass
|
||||||
portal.mxid = room_id
|
portal.mxid = room_id
|
||||||
e2be_ok = None
|
e2be_ok = await portal.check_dm_encryption()
|
||||||
if self.config["bridge.encryption.default"] and self.e2ee:
|
|
||||||
e2be_ok = await portal.enable_dm_encryption()
|
|
||||||
await portal.save()
|
await portal.save()
|
||||||
await inviter.register_portal(portal)
|
await inviter.register_portal(portal)
|
||||||
if e2be_ok is True:
|
if e2be_ok is True:
|
||||||
|
|||||||
@@ -181,6 +181,10 @@ class BasePortal(MautrixBasePortal, ABC):
|
|||||||
elif self.peer_type == "channel":
|
elif self.peer_type == "channel":
|
||||||
return PeerChannel(channel_id=self.tgid)
|
return PeerChannel(channel_id=self.tgid)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_direct(self) -> bool:
|
||||||
|
return self.peer_type == "user"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_bot(self) -> bool:
|
def has_bot(self) -> bool:
|
||||||
return (bool(self.bot)
|
return (bool(self.bot)
|
||||||
|
|||||||
+1
-1
@@ -5,6 +5,6 @@ python-magic>=0.4,<0.5
|
|||||||
commonmark>=0.8,<0.10
|
commonmark>=0.8,<0.10
|
||||||
aiohttp>=3,<4
|
aiohttp>=3,<4
|
||||||
yarl>=1,<2
|
yarl>=1,<2
|
||||||
mautrix>=0.8.3,<0.9
|
mautrix>=0.8.4,<0.9
|
||||||
telethon>=1.17,<1.18
|
telethon>=1.17,<1.18
|
||||||
telethon-session-sqlalchemy>=0.2.14,<0.3
|
telethon-session-sqlalchemy>=0.2.14,<0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user