mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
handle parent for webxdc info-messages (#2984)
* set parent for webxdc info-messages * test parent() for info-messages * add dc_msg_get_parent() ffi
This commit is contained in:
@@ -830,7 +830,7 @@ impl Message {
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
pub(crate) async fn parent(&self, context: &Context) -> Result<Option<Message>> {
|
||||
pub async fn parent(&self, context: &Context) -> Result<Option<Message>> {
|
||||
if let Some(in_reply_to) = &self.in_reply_to {
|
||||
if let Some(msg_id) = rfc724_mid_exists(context, in_reply_to).await? {
|
||||
let msg = Message::load_from_db(context, msg_id).await?;
|
||||
|
||||
Reference in New Issue
Block a user