Skip to content

Conversation

@Fizzadar
Copy link
Member

Chats, not messages.

@Fizzadar Fizzadar force-pushed the nick/backfill-all-chats branch 3 times, most recently from ec685e6 to 8d27f18 Compare January 15, 2026 16:56
@Fizzadar Fizzadar changed the title WIP: backfill all chats Backfill all chats Jan 15, 2026
@Fizzadar Fizzadar force-pushed the nick/backfill-all-chats branch from 8d27f18 to b7a3511 Compare January 16, 2026 14:14
Chats only, no messages. Though in testing it appears to pick up the
most recent messages for each room as we paginate anyway.
@Fizzadar Fizzadar force-pushed the nick/backfill-all-chats branch from b7a3511 to 90b6f3c Compare January 16, 2026 14:15
@Fizzadar Fizzadar marked this pull request as ready for review January 16, 2026 14:15
@Fizzadar Fizzadar requested a review from tulir January 19, 2026 10:59
# Thread backfill settings for syncing older conversations
thread_backfill:
# Enable thread list backfill to sync older conversations on connect
enabled: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Batch count limit would probably be more appropriate than an enabled boolean (-1 for unlimited, 0 for disabled, >0 for limited)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


batchCount++

keyStore := m.Client.GetSyncGroupKeyStore(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fetching this inside FetchMoreThreads and again here is a bit weird

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah should just come back from fetch more => 4281417

@Fizzadar Fizzadar changed the title Backfill all chats connector,messagix: support backfill of all chats Jan 19, 2026
@Fizzadar Fizzadar requested a review from tulir January 19, 2026 16:55
helper.Copy(up.Bool, "send_presence_on_typing")
helper.Copy(up.Bool, "receive_instagram_typing_indicators")
helper.Copy(up.Bool, "disable_view_once")
helper.Copy(up.Bool, "thread_backfill", "enabled")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
helper.Copy(up.Bool, "thread_backfill", "enabled")
helper.Copy(up.Int, "thread_backfill", "batch_count")

helper.Copy(up.Bool, "receive_instagram_typing_indicators")
helper.Copy(up.Bool, "disable_view_once")
helper.Copy(up.Bool, "thread_backfill", "enabled")
helper.Copy(up.Str, "thread_backfill", "batch_delay")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think duration parsing allows numbers too (mostly useful for 0)

Suggested change
helper.Copy(up.Str, "thread_backfill", "batch_delay")
helper.Copy(up.Str|up.Int, "thread_backfill", "batch_delay")

delay := m.Main.Config.ThreadBackfill.BatchDelay

batchCount := 0
lastMinThreadKey := m.Client.GetSyncGroupKeyStore(1).MinThreadKey
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the key store be nil? (i.e. will this panic?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants