Missing invite for bridgebot

Most evident at room creation, but more might need to be added
This commit is contained in:
Cristian Le 2021-06-04 19:29:44 +09:00
parent 9d1d6e379c
commit 9270761b20

View File

@ -635,6 +635,9 @@ class Portal(DBPortal, BasePortal):
"content": self.bridge_info,
}]
invites = [source.mxid]
if self.needs_bridgebot:
invites.append(self.az.bot_mxid)
if self.config["bridge.encryption.default"] and self.matrix.e2ee:
self.encrypted = True
initial_state.append({