mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
docs(jsonrpc): update documentation for select_account and get_selected_account_id (#6483)
there are not really unused, desktop uses them also see #4474
This commit is contained in:
@@ -212,14 +212,12 @@ impl CommandApi {
|
|||||||
self.accounts.read().await.get_all()
|
self.accounts.read().await.get_all()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Select account id for internally selected state.
|
/// Select account in account manager, this saves the last used account to accounts.toml
|
||||||
/// TODO: Likely this is deprecated as all methods take an account id now.
|
|
||||||
async fn select_account(&self, id: u32) -> Result<()> {
|
async fn select_account(&self, id: u32) -> Result<()> {
|
||||||
self.accounts.write().await.select_account(id).await
|
self.accounts.write().await.select_account(id).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the selected account id of the internal state..
|
/// Get the selected account from the account manager (on startup it is read from accounts.toml)
|
||||||
/// TODO: Likely this is deprecated as all methods take an account id now.
|
|
||||||
async fn get_selected_account_id(&self) -> Option<u32> {
|
async fn get_selected_account_id(&self) -> Option<u32> {
|
||||||
self.accounts.read().await.get_selected_account_id()
|
self.accounts.read().await.get_selected_account_id()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user