mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 07:56:29 +03:00
fix FFI-behaviour: return default empty messages when asked for special ones
This commit is contained in:
@@ -655,8 +655,6 @@ impl<'a> MimeFactory<'a> {
|
||||
}
|
||||
|
||||
pub fn load_msg(context: &Context, msg_id: MsgId) -> Result<MimeFactory, Error> {
|
||||
ensure!(!msg_id.is_special(), "Invalid chat id");
|
||||
|
||||
let msg = Message::load_from_db(context, msg_id)?;
|
||||
let chat = Chat::load_from_db(context, msg.chat_id)?;
|
||||
let mut factory = MimeFactory::new(context, msg);
|
||||
|
||||
Reference in New Issue
Block a user