mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/portal: don't forward backfill without CanBackfill flag
This commit is contained in:
parent
a2522192ff
commit
0584fd0c0d
1 changed files with 4 additions and 1 deletions
|
|
@ -5089,7 +5089,10 @@ func (portal *Portal) createMatrixRoomInLoop(ctx context.Context, source *UserLo
|
|||
}
|
||||
}
|
||||
portal.addToUserSpaces(ctx)
|
||||
if portal.Bridge.Config.Backfill.Enabled && portal.RoomType != database.RoomTypeSpace && !portal.Bridge.Background {
|
||||
if info.CanBackfill &&
|
||||
portal.Bridge.Config.Backfill.Enabled &&
|
||||
portal.RoomType != database.RoomTypeSpace &&
|
||||
!portal.Bridge.Background {
|
||||
portal.doForwardBackfill(ctx, source, nil, backfillBundle)
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue