mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +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.
|
/// Used as the first info messages in newly created classic email threads.
|
||||||
#define DC_STR_CHAT_UNENCRYPTED_EXPLANATON 230
|
#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."))]
|
#[strum(props(fallback = "Messages in this chat use classic email and are not encrypted."))]
|
||||||
ChatUnencryptedExplanation = 230,
|
ChatUnencryptedExplanation = 230,
|
||||||
|
|
||||||
#[strum(props(fallback = "Contact"))]
|
|
||||||
Contact = 231,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl StockMessage {
|
impl StockMessage {
|
||||||
@@ -885,11 +882,6 @@ pub(crate) async fn sticker(context: &Context) -> String {
|
|||||||
translated(context, StockMessage::Sticker).await
|
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`.
|
/// Stock string: `Device messages`.
|
||||||
pub(crate) async fn device_messages(context: &Context) -> String {
|
pub(crate) async fn device_messages(context: &Context) -> String {
|
||||||
translated(context, StockMessage::DeviceMessages).await
|
translated(context, StockMessage::DeviceMessages).await
|
||||||
@@ -1259,7 +1251,7 @@ impl Viewtype {
|
|||||||
Viewtype::Video => video(context).await,
|
Viewtype::Video => video(context).await,
|
||||||
Viewtype::File => file(context).await,
|
Viewtype::File => file(context).await,
|
||||||
Viewtype::Webxdc => "Mini App".to_owned(),
|
Viewtype::Webxdc => "Mini App".to_owned(),
|
||||||
Viewtype::Vcard => contact(context).await,
|
Viewtype::Vcard => "👤".to_string(),
|
||||||
Viewtype::Unknown | Viewtype::Text | Viewtype::Call => self.to_string(),
|
Viewtype::Unknown | Viewtype::Text | Viewtype::Call => self.to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user