remove "Contact" stock string again, use emoji like in summaries

This commit is contained in:
link2xt
2025-12-14 18:03:10 +00:00
parent a98fe05e08
commit eb489bc016
2 changed files with 1 additions and 14 deletions

View File

@@ -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
/**
* @}
*/

View File

@@ -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(),
}
}