Skip to content

Commit 253331b

Browse files
committed
feat: jsonrpc: add MessageObject.is_edited
This is a follow-up to #6550. Partially addresses deltachat/deltachat-desktop#4694.
1 parent 85cbfde commit 253331b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deltachat-jsonrpc/src/api/types/message.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ pub struct MessageObject {
3939

4040
text: String,
4141

42+
is_edited: bool,
43+
4244
/// Check if a message has a POI location bound to it.
4345
/// These locations are also returned by `get_locations` method.
4446
/// The UI may decide to display a special icon beside such messages.
@@ -204,6 +206,7 @@ impl MessageObject {
204206
quote,
205207
parent_id,
206208
text: message.get_text(),
209+
is_edited: message.is_edited(),
207210
has_location: message.has_location(),
208211
has_html: message.has_html(),
209212
view_type: message.get_viewtype().into(),

0 commit comments

Comments
 (0)