mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
- resultify send-out pipeline for better error reporting
- early ignore sending out smtp messages with no recipients
This commit is contained in:
@@ -1245,8 +1245,11 @@ pub unsafe extern "C" fn dc_forward_msgs(
|
||||
|
||||
let ffi_context = &*context;
|
||||
ffi_context
|
||||
.with_inner(|ctx| chat::forward_msgs(ctx, ids, chat_id))
|
||||
.unwrap_or_log_default(ctx, "Failed to forard message")
|
||||
.with_inner(|ctx| {
|
||||
chat::forward_msgs(ctx, ids, chat_id)
|
||||
.unwrap_or_log_default(ctx, "Failed to forward message")
|
||||
})
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user