diff --git a/deltachat-jsonrpc/src/api/mod.rs b/deltachat-jsonrpc/src/api/mod.rs index ce0d1ab8f..e25c05c7f 100644 --- a/deltachat-jsonrpc/src/api/mod.rs +++ b/deltachat-jsonrpc/src/api/mod.rs @@ -18,7 +18,7 @@ pub use deltachat::accounts::Accounts; pub mod events; pub mod types; -use crate::api::types::chat_list::{ChatListItemFetchResult, _get_chat_list_items_by_id}; +use crate::api::types::chat_list::{ChatListItemFetchResult, get_chat_list_item_by_id}; use types::account::Account; use types::chat::FullChat; @@ -273,7 +273,7 @@ impl CommandApi { for (_i, entry) in entries.iter().enumerate() { result.insert( entry.0, - match _get_chat_list_items_by_id(&ctx, entry).await { + match get_chat_list_item_by_id(&ctx, entry).await { Ok(res) => res, Err(err) => ChatListItemFetchResult::Error { id: entry.0, diff --git a/deltachat-jsonrpc/src/api/types/chat_list.rs b/deltachat-jsonrpc/src/api/types/chat_list.rs index c42d4e48e..d53cea390 100644 --- a/deltachat-jsonrpc/src/api/types/chat_list.rs +++ b/deltachat-jsonrpc/src/api/types/chat_list.rs @@ -51,7 +51,7 @@ pub enum ChatListItemFetchResult { }, } -pub(crate) async fn _get_chat_list_items_by_id( +pub(crate) async fn get_chat_list_item_by_id( ctx: &deltachat::context::Context, entry: &ChatListEntry, ) -> Result {