Missing invites #16

Merged
fair merged 2 commits from lecris/matrix-puppeteer-line:encrypt-room into master 2021-06-06 21:52:24 -04:00

View File

@ -635,12 +635,15 @@ class Portal(DBPortal, BasePortal):
"content": self.bridge_info,
}]
invites = [source.mxid]
if self.config["bridge.encryption.default"] and self.matrix.e2ee:
self.encrypted = True
initial_state.append({
"type": str(EventType.ROOM_ENCRYPTION),
"content": {"algorithm": "m.megolm.v1.aes-sha2"},
})
if self.is_direct:
invites.append(self.az.bot_mxid)
# NOTE Set the room title even for direct chats, because
# the LINE bot itself may appear in the title otherwise.
#if self.encrypted or not self.is_direct: