Skip to content

Commit

Permalink
Ensure chats are in backfill queue on all upserts
Browse files Browse the repository at this point in the history
[skip cd]
  • Loading branch information
tulir committed Jan 29, 2024
1 parent 730999b commit aa16a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (portal *Portal) handleMetaUpsertMessages(user *User, upsert *table.UpsertM
Str("upsert_max_id", upsert.Range.MaxMessageId).
Msg("Ignoring unrequested upsert before last message")
queueConfig := portal.bridge.Config.Bridge.Backfill.Queue
if lastMessage == nil && queueConfig.MaxPages != 0 && portal.bridge.SpecVersions.Supports(mautrix.BeeperFeatureBatchSending) {
if queueConfig.MaxPages != 0 && portal.bridge.SpecVersions.Supports(mautrix.BeeperFeatureBatchSending) {
task := portal.bridge.DB.BackfillTask.NewWithValues(portal.PortalKey, user.MXID)
err = task.InsertIfNotExists(ctx)
if err != nil {
Expand Down

0 comments on commit aa16a8d

Please sign in to comment.