resultify get_fresh_msgs(), this will make eg. test fail on bad sql

This commit is contained in:
B. Petersen
2021-02-27 00:48:15 +01:00
committed by bjoern
parent 81cd577bf0
commit f9c5ad817b
3 changed files with 9 additions and 6 deletions

View File

@@ -925,6 +925,8 @@ pub unsafe extern "C" fn dc_get_fresh_msgs(
let arr = dc_array_t::from(
ctx.get_fresh_msgs()
.await
.log_err(ctx, "Failed to get fresh messages")
.unwrap_or_default()
.iter()
.map(|msg_id| msg_id.to_u32())
.collect::<Vec<u32>>(),