Skip to content

Commit bfd6f05

Browse files
committed
improvement: add MessageQuote.chat_id
For the "Reply Privately" feature.
1 parent 0b9746b commit bfd6f05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ enum MessageQuote {
104104
WithMessage {
105105
text: String,
106106
message_id: u32,
107+
/// The quoted message does not always belong
108+
/// to the parent message's chat, e.g. when "Reply Privately" is used.
109+
chat_id: u32,
107110
author_display_name: String,
108111
author_display_color: String,
109112
override_sender_name: Option<String>,
@@ -147,6 +150,7 @@ impl MessageObject {
147150
Some(MessageQuote::WithMessage {
148151
text: quoted_text,
149152
message_id: quote.get_id().to_u32(),
153+
chat_id: quote.get_chat_id().to_u32(),
150154
author_display_name: quote_author.get_display_name().to_owned(),
151155
author_display_color: color_int_to_hex_string(quote_author.get_color()),
152156
override_sender_name: quote.get_override_sender_name(),

0 commit comments

Comments
 (0)