mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
Change type of dc_msg_t.text to String
Also, remove `send-garbage' command from REPL, since it is not possible to send non-utf8 string anymore.
This commit is contained in:
committed by
Floris Bruynooghe
parent
d4650ba4a9
commit
765ac2005e
@@ -374,6 +374,7 @@ pub unsafe extern "C" fn dc_send_text_msg(
|
||||
) -> u32 {
|
||||
assert!(!context.is_null());
|
||||
let context = &*context;
|
||||
let text_to_send = dc_tools::to_string_lossy(text_to_send);
|
||||
|
||||
dc_chat::dc_send_text_msg(context, chat_id, text_to_send)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user