jsonrpc: do not return a result from deleteContact()

It was always true anyway.
This commit is contained in:
link2xt
2022-11-15 14:58:17 +00:00
parent b63baf939e
commit da6c68629d
2 changed files with 3 additions and 3 deletions

View File

@@ -1146,12 +1146,12 @@ impl CommandApi {
Ok(contacts)
}
async fn delete_contact(&self, account_id: u32, contact_id: u32) -> Result<bool> {
async fn delete_contact(&self, account_id: u32, contact_id: u32) -> Result<()> {
let ctx = self.get_context(account_id).await?;
let contact_id = ContactId::new(contact_id);
Contact::delete(&ctx, contact_id).await?;
Ok(true)
Ok(())
}
async fn change_contact_name(