From 6abadac4bb979bb0369725e4db4623075c2690c9 Mon Sep 17 00:00:00 2001 From: WofWca Date: Wed, 30 Oct 2024 06:58:17 +0400 Subject: [PATCH] api: add `MessageSearchResult.chat_id` (#6120) --- deltachat-jsonrpc/src/api/types/message.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deltachat-jsonrpc/src/api/types/message.rs b/deltachat-jsonrpc/src/api/types/message.rs index 93e7593d0..697cba35e 100644 --- a/deltachat-jsonrpc/src/api/types/message.rs +++ b/deltachat-jsonrpc/src/api/types/message.rs @@ -490,6 +490,7 @@ pub struct MessageSearchResult { author_name: String, author_color: String, author_id: u32, + chat_id: u32, chat_profile_image: Option, chat_color: String, chat_name: String, @@ -529,6 +530,7 @@ impl MessageSearchResult { author_name, author_color: color_int_to_hex_string(sender.get_color()), author_id: sender.id.to_u32(), + chat_id: chat.id.to_u32(), chat_name: chat.get_name().to_owned(), chat_color, chat_type: chat.get_type().to_u32().context("unknown chat type id")?,