diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs
index 4741ec240..c1f4287d3 100644
--- a/deltachat-ffi/src/lib.rs
+++ b/deltachat-ffi/src/lib.rs
@@ -3574,7 +3574,8 @@ pub unsafe extern "C" fn dc_msg_latefiling_mediasize(
ffi_msg
.message
.latefiling_mediasize(ctx, width, height, duration)
- });
+ })
+ .ok_or_log_msg(ctx, "Cannot set media size");
}
#[no_mangle]
diff --git a/src/chat.rs b/src/chat.rs
index c4a3efbe2..6d1f5753c 100644
--- a/src/chat.rs
+++ b/src/chat.rs
@@ -1951,7 +1951,7 @@ pub async fn send_msg(context: &Context, chat_id: ChatId, msg: &mut Message) ->
}
}
msg.param.remove(Param::PrepForwards);
- msg.update_param(context).await;
+ msg.update_param(context).await?;
}
return send_msg_inner(context, chat_id, msg).await;
}
@@ -2120,7 +2120,7 @@ async fn create_send_msg_job(context: &Context, msg_id: MsgId) -> Result