mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +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_quote = &*quote;
|
||||
|
||||
if ffi_msg.context != ffi_quote.context {
|
||||
eprintln!("ignoring attempt to quote message from a different context");
|
||||
return;
|
||||
}
|
||||
|
||||
block_on(async move {
|
||||
ffi_msg
|
||||
.message
|
||||
|
||||
Reference in New Issue
Block a user