From eb489bc0166c47f30afa0ad65594fe1712d6d5f4 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 14 Dec 2025 18:03:10 +0000 Subject: [PATCH] remove "Contact" stock string again, use emoji like in summaries --- deltachat-ffi/deltachat.h | 5 ----- src/stock_str.rs | 10 +--------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 66399f2ab..5379ec678 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -7764,11 +7764,6 @@ void dc_event_unref(dc_event_t* event); /// Used as the first info messages in newly created classic email threads. #define DC_STR_CHAT_UNENCRYPTED_EXPLANATON 230 -/// "Contact" -/// -/// Used in summaries. -#define DC_STR_CONTACT 231 - /** * @} */ diff --git a/src/stock_str.rs b/src/stock_str.rs index b9388f8f3..68c65c46f 100644 --- a/src/stock_str.rs +++ b/src/stock_str.rs @@ -415,9 +415,6 @@ https://delta.chat/donate"))] #[strum(props(fallback = "Messages in this chat use classic email and are not encrypted."))] ChatUnencryptedExplanation = 230, - - #[strum(props(fallback = "Contact"))] - Contact = 231, } impl StockMessage { @@ -885,11 +882,6 @@ pub(crate) async fn sticker(context: &Context) -> String { translated(context, StockMessage::Sticker).await } -/// Stock string: `Contact`. -pub(crate) async fn contact(context: &Context) -> String { - translated(context, StockMessage::Contact).await -} - /// Stock string: `Device messages`. pub(crate) async fn device_messages(context: &Context) -> String { translated(context, StockMessage::DeviceMessages).await @@ -1259,7 +1251,7 @@ impl Viewtype { Viewtype::Video => video(context).await, Viewtype::File => file(context).await, Viewtype::Webxdc => "Mini App".to_owned(), - Viewtype::Vcard => contact(context).await, + Viewtype::Vcard => "👤".to_string(), Viewtype::Unknown | Viewtype::Text | Viewtype::Call => self.to_string(), } }