modernise some stuff

This commit is contained in:
Septias
2022-12-12 22:21:42 +01:00
parent 32cbde0754
commit eab7f8ea15
4 changed files with 4 additions and 10 deletions

View File

@@ -3307,11 +3307,10 @@ pub unsafe extern "C" fn dc_is_webxdc_updating(
msg_id: u32,
) -> libc::c_int {
if context.is_null() {
eprintln!("ignoring careless call to dc_get_blocked_contacts()");
eprintln!("ignoring careless call to dc_is_webxdc_updating()");
return 0;
}
let ctx = &*context;
block_on(async move {
webxdc::get_busy_webxdc_instances(ctx)
.await