From cd50c263e811a0d6927eae7a0e06129f735c5553 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 13 Nov 2025 04:09:12 +0000 Subject: [PATCH] api!(jsonrpc): rename accounts_background_fetch() into background_fetch() There is no JSON-RPC method to run background_fetch() for a single account, so no need to have a qualifier saying that it is for all accounts. --- deltachat-jsonrpc/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index 22853c925..4f22d8510 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -273,7 +273,7 @@ impl CommandApi { /// The `AccountsBackgroundFetchDone` event is emitted at the end even in case of timeout. /// Process all events until you get this one and you can safely return to the background /// without forgetting to create notifications caused by timing race conditions. - async fn accounts_background_fetch(&self, timeout_in_seconds: f64) -> Result<()> { + async fn background_fetch(&self, timeout_in_seconds: f64) -> Result<()> { let future = { let lock = self.accounts.read().await; lock.background_fetch(std::time::Duration::from_secs_f64(timeout_in_seconds))