core icon indicating copy to clipboard operation
core copied to clipboard

Add API to enable/disable accounts in account manager

Open link2xt opened this issue 2 years ago • 3 comments

In account manager it should be possible to disable accounts in such a way that they are not started when dc_accounts_start_io() is called.

It could be implemented as dc_accounts_enable(account_id: u32, enabled: bool) and dc_accounts_is_account_enabled(account_id: u32) -> bool calls.

Whether account is enabled or not should be written into accounts.toml. #4295 should be fixed before tackling this issue, because otherwise each toggle of account status may fail and corrupt accounts.toml.

link2xt avatar Apr 03 '23 20:04 link2xt

Desktop currently has implemented an UI hack that disables background synchronization for all accounts, and this feature is about implementing a per-account switch telling whether the account should be synchronized in background or not.

link2xt avatar Jul 25 '23 12:07 link2xt

Draft PR: #5314

link2xt avatar Apr 05 '24 15:04 link2xt