From 8c8f029e11a345f29763e2d3feee1c1254faa8cd Mon Sep 17 00:00:00 2001 From: Skip R Date: Tue, 25 Nov 2025 13:48:45 -0800 Subject: [PATCH] connector: do not forward backfill empty rooms We'll quickly hit ratelimits if we have a bunch of empty rooms, since forward backfilling apparently doesn't go through the queue. --- pkg/connector/events.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/connector/events.go b/pkg/connector/events.go index 631bb06..6e55404 100644 --- a/pkg/connector/events.go +++ b/pkg/connector/events.go @@ -68,7 +68,8 @@ func (d *DiscordChatResync) ShouldCreatePortal() bool { func (d *DiscordChatResync) CheckNeedsBackfill(ctx context.Context, latestBridged *database.Message) (bool, error) { if latestBridged == nil { - return true, nil + zerolog.Ctx(ctx).Debug().Str("channel_id", d.channel.ID).Msg("Haven't bridged any messages at all, not forward backfilling") + return false, nil } return latestBridged.ID < networkid.MessageID(d.channel.LastMessageID), nil }