mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
api: add MessageSearchResult.chat_id (#6120)
This commit is contained in:
@@ -490,6 +490,7 @@ pub struct MessageSearchResult {
|
|||||||
author_name: String,
|
author_name: String,
|
||||||
author_color: String,
|
author_color: String,
|
||||||
author_id: u32,
|
author_id: u32,
|
||||||
|
chat_id: u32,
|
||||||
chat_profile_image: Option<String>,
|
chat_profile_image: Option<String>,
|
||||||
chat_color: String,
|
chat_color: String,
|
||||||
chat_name: String,
|
chat_name: String,
|
||||||
@@ -529,6 +530,7 @@ impl MessageSearchResult {
|
|||||||
author_name,
|
author_name,
|
||||||
author_color: color_int_to_hex_string(sender.get_color()),
|
author_color: color_int_to_hex_string(sender.get_color()),
|
||||||
author_id: sender.id.to_u32(),
|
author_id: sender.id.to_u32(),
|
||||||
|
chat_id: chat.id.to_u32(),
|
||||||
chat_name: chat.get_name().to_owned(),
|
chat_name: chat.get_name().to_owned(),
|
||||||
chat_color,
|
chat_color,
|
||||||
chat_type: chat.get_type().to_u32().context("unknown chat type id")?,
|
chat_type: chat.get_type().to_u32().context("unknown chat type id")?,
|
||||||
|
|||||||
Reference in New Issue
Block a user