Return Vec from get_all_blocked

And never return nullptr from dc_get_blocked_contacts.
This commit is contained in:
Alexander Krotov
2019-08-13 18:44:00 +03:00
committed by holger krekel
parent 9cf6ca045c
commit 88a81f5737
2 changed files with 6 additions and 12 deletions

View File

@@ -837,7 +837,7 @@ pub unsafe extern "C" fn dc_get_blocked_contacts(
assert!(!context.is_null());
let context = &*context;
Contact::get_all_blocked(context)
dc_array_t::from(Contact::get_all_blocked(context)).into_raw()
}
#[no_mangle]