Skip to content

commands: allow specifying a login for sync#926

Open
wickes1 wants to merge 1 commit into
mautrix:mainfrom
wickes1:sync-login-flag
Open

commands: allow specifying a login for sync#926
wickes1 wants to merge 1 commit into
mautrix:mainfrom
wickes1:sync-login-flag

Conversation

@wickes1

@wickes1 wickes1 commented Jun 6, 2026

Copy link
Copy Markdown

sync always uses the default login (GetDefaultLogin() returns the lowest login ID), so with two WhatsApp logins the other one can't be bulk-synced (contacts / groups / appstate). set-preferred-login doesn't help: it's per-portal send routing, not bulk sync.

This PR lets sync take an optional leading login ID, the same way start-chat does: if the first arg is one of your own logins it's used, otherwise behaviour is unchanged. It also updates the stale Help.Args.

Tested locally on a setup with two WhatsApp logins: the non-default login's contacts now resync correctly (previously only the default login could be synced).

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.

1 participant