Add missing check

This commit is contained in:
Tulir Asokan
2020-04-03 22:18:07 +03:00
parent 32db2355a2
commit 708fec6886
+1 -1
View File
@@ -336,7 +336,7 @@ class PortalMetadata(BasePortal, ABC):
if not room_id:
raise Exception(f"Failed to create room")
if self.encrypted:
if self.encrypted and self.matrix.e2ee:
members = [self.main_intent.mxid]
if direct:
try: