mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
deltachat-ffi: forbid quoting messages from another context
This commit is contained in:
committed by
link2xt
parent
c53c6cdf90
commit
46c544a5ca
@@ -3008,6 +3008,11 @@ pub unsafe extern "C" fn dc_msg_set_quote(msg: *mut dc_msg_t, quote: *const dc_m
|
|||||||
let ffi_msg = &mut *msg;
|
let ffi_msg = &mut *msg;
|
||||||
let ffi_quote = &*quote;
|
let ffi_quote = &*quote;
|
||||||
|
|
||||||
|
if ffi_msg.context != ffi_quote.context {
|
||||||
|
eprintln!("ignoring attempt to quote message from a different context");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
block_on(async move {
|
block_on(async move {
|
||||||
ffi_msg
|
ffi_msg
|
||||||
.message
|
.message
|
||||||
|
|||||||
Reference in New Issue
Block a user