fix: call EnsureJoined with ctx

This commit is contained in:
Timo Ley 2024-03-12 12:37:58 +01:00
parent 1bbfd603be
commit 196e5bc106
1 changed files with 2 additions and 2 deletions

View File

@ -2313,9 +2313,9 @@ func (portal *Portal) CreateMatrixRoom(ctx context.Context, user *User, groupInf
}
if portal.bridge.Config.Bridge.PrivateChatSelfPuppets {
rec := portal.bridge.GetPuppetByJID(portal.Key.Receiver)
err = rec.DefaultIntent().EnsureJoined(portal.MXID)
err = rec.DefaultIntent().EnsureJoined(ctx, portal.MXID)
if err != nil {
portal.log.Errorln("Failed to join created portal with puppet:", err)
log.Err(err).Msg("Failed to join created portal with puppet")
}
}