mirror of
https://github.com/chatmail/core.git
synced 2026-05-10 18:36:29 +03:00
fix
This commit is contained in:
@@ -4461,14 +4461,14 @@ mod jsonrpc {
|
|||||||
}
|
}
|
||||||
let api_version = to_string_lossy(api_version);
|
let api_version = to_string_lossy(api_version);
|
||||||
|
|
||||||
let rpc_api = match &api_version {
|
let rpc_api = match api_version.as_str() {
|
||||||
"v0" => {
|
"v0" => {
|
||||||
deltachat_jsonrpc::api::DeltaChatApiV0::from_arc((*account_manager).inner.clone())
|
deltachat_jsonrpc::api::DeltaChatApiV0::from_arc((*account_manager).inner.clone())
|
||||||
}
|
}
|
||||||
_ => {
|
version => {
|
||||||
error!(
|
eprintln!(
|
||||||
ctx,
|
"Error initializing JSON-RPC API: API version {} is not supported.",
|
||||||
"The requested JSON-RPC API version is not supported.", err
|
version
|
||||||
);
|
);
|
||||||
return ptr::null_mut();
|
return ptr::null_mut();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user