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 47a0284e81
commit 92fd74afa2
1 changed files with 3 additions and 0 deletions

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({