api: add MessageSearchResult.chat_id (#6120)

This commit is contained in:
WofWca
2024-10-30 06:58:17 +04:00
committed by GitHub
parent 55702e4985
commit 6abadac4bb

View File

@@ -490,6 +490,7 @@ pub struct MessageSearchResult {
author_name: String,
author_color: String,
author_id: u32,
chat_id: u32,
chat_profile_image: Option<String>,
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")?,