Add option to update m.direct with double puppeting

This commit is contained in:
Tulir Asokan
2020-08-22 13:07:55 +03:00
parent b1c947da99
commit 2638204eaa
11 changed files with 87 additions and 12 deletions

View File

@@ -1038,6 +1038,8 @@ func (portal *Portal) CreateMatrixRoom(user *User) error {
portal.log.Errorln("Failed to join created portal with bridge bot for e2be:", err)
}
}
user.UpdateDirectChats(map[id.UserID][]id.RoomID{puppet.MXID: {portal.MXID}})
}
err = portal.FillInitialHistory(user)
if err != nil {