Skip to content

Commit

Permalink
Set more_to_backfill flag after creating room
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 13, 2024
1 parent 7941e93 commit 2310684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ func (portal *Portal) handleMessageBatch(ctx context.Context, source *User, upse
log.Err(err).Msg("Failed to save oldest message ID/timestamp in database")
} else {
log.Debug().
Bool("more_to_backfill", portal.MoreToBackfill).
Int64("oldest_message_ts", portal.OldestMessageTS).
Str("oldest_message_id", portal.OldestMessageID).
Msg("Saved oldest message ID/timestamp in database")
Expand Down
1 change: 1 addition & 0 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,7 @@ func (portal *Portal) CreateMatrixRoom(ctx context.Context, user *User) error {
portal.NameSet = len(req.Name) > 0
portal.AvatarSet = !portal.AvatarURL.IsEmpty()
portal.MXID = resp.RoomID
portal.MoreToBackfill = true
portal.bridge.portalsLock.Lock()
portal.bridge.portalsByMXID[portal.MXID] = portal
portal.bridge.portalsLock.Unlock()
Expand Down

0 comments on commit 2310684

Please sign in to comment.