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() }