From 253331b7fdf4d0292eca4d006e91b8b6f660d97f Mon Sep 17 00:00:00 2001 From: WofWca Date: Fri, 21 Feb 2025 20:50:14 +0400 Subject: [PATCH] feat: jsonrpc: add `MessageObject.is_edited` This is a follow-up to https://github.com/deltachat/deltachat-core-rust/pull/6550. Partially addresses https://github.com/deltachat/deltachat-desktop/issues/4694. --- deltachat-jsonrpc/src/api/types/message.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deltachat-jsonrpc/src/api/types/message.rs b/deltachat-jsonrpc/src/api/types/message.rs index d47b61c2b..a60ee15a5 100644 --- a/deltachat-jsonrpc/src/api/types/message.rs +++ b/deltachat-jsonrpc/src/api/types/message.rs @@ -39,6 +39,8 @@ pub struct MessageObject { text: String, + is_edited: bool, + /// Check if a message has a POI location bound to it. /// These locations are also returned by `get_locations` method. /// The UI may decide to display a special icon beside such messages. @@ -204,6 +206,7 @@ impl MessageObject { quote, parent_id, text: message.get_text(), + is_edited: message.is_edited(), has_location: message.has_location(), has_html: message.has_html(), view_type: message.get_viewtype().into(),