From 3b6369a8c807019419fcc4d8e1584a5a490160f2 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Mon, 27 Jan 2025 22:29:28 +0100 Subject: [PATCH] docs(jsonrpc): update documentation for `select_account` and `get_selected_account_id` (#6483) there are not really unused, desktop uses them also see #4474 --- deltachat-jsonrpc/src/api.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index 704a8b9dd..17c205f15 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -212,14 +212,12 @@ impl CommandApi { self.accounts.read().await.get_all() } - /// Select account id for internally selected state. - /// TODO: Likely this is deprecated as all methods take an account id now. + /// Select account in account manager, this saves the last used account to accounts.toml async fn select_account(&self, id: u32) -> Result<()> { self.accounts.write().await.select_account(id).await } - /// Get the selected account id of the internal state.. - /// TODO: Likely this is deprecated as all methods take an account id now. + /// Get the selected account from the account manager (on startup it is read from accounts.toml) async fn get_selected_account_id(&self) -> Option { self.accounts.read().await.get_selected_account_id() }