mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
resultify get_fresh_msgs(), this will make eg. test fail on bad sql
This commit is contained in:
@@ -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>>(),
|
||||
|
||||
Reference in New Issue
Block a user