mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
calculate image-size in device-messages
eg. android relies on that and fallsback to wrong aspect ratios otherwise. also, this makes job.rs a little more readable as some things are moved to message.rs :)
This commit is contained in:
@@ -1984,6 +1984,7 @@ pub fn add_device_msg(
|
||||
chat_id = create_or_lookup_by_contact_id(context, DC_CONTACT_ID_DEVICE, Blocked::Not)?.0;
|
||||
|
||||
let rfc724_mid = dc_create_outgoing_rfc724_mid(None, "@device");
|
||||
msg.try_calc_and_set_dimensions(context).ok();
|
||||
prepare_msg_blob(context, msg)?;
|
||||
unarchive(context, chat_id)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user