mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
remove "Contact" stock string again, use emoji like in summaries
This commit is contained in:
@@ -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
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user