Add puppet to personal filtering community when adding portal

This commit is contained in:
Tulir Asokan
2020-01-07 21:25:41 +02:00
parent a7601fa4cc
commit 8c3807a16d
3 changed files with 37 additions and 0 deletions

View File

@ -791,6 +791,10 @@ func (portal *Portal) CreateMatrixRoom(user *User) error {
}
}
user.addPortalToCommunity(portal)
if portal.IsPrivateChat() {
puppet := user.bridge.GetPuppetByJID(portal.Key.JID)
user.addPuppetToCommunity(puppet)
}
err = portal.FillInitialHistory(user)
if err != nil {
portal.log.Errorln("Failed to fill history:", err)