mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
add json api to cffi and expose it in dc node
This commit is contained in:
@@ -39,6 +39,10 @@ impl CommandApi {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_from_cffi(accounts: Arc<RwLock<Accounts>>) -> Self {
|
||||
CommandApi { accounts }
|
||||
}
|
||||
|
||||
async fn get_context(&self, id: u32) -> Result<deltachat::context::Context> {
|
||||
let sc = self
|
||||
.accounts
|
||||
|
||||
Reference in New Issue
Block a user