@@ -415,6 +415,9 @@ https://delta.chat/donate"))]
415415
416416 #[ strum( props( fallback = "Messages in this chat use classic email and are not encrypted." ) ) ]
417417 ChatUnencryptedExplanation = 230 ,
418+
419+ #[ strum( props( fallback = "Contact" ) ) ]
420+ Contact = 231 ,
418421}
419422
420423impl StockMessage {
@@ -882,6 +885,11 @@ pub(crate) async fn sticker(context: &Context) -> String {
882885 translated ( context, StockMessage :: Sticker ) . await
883886}
884887
888+ /// Stock string: `Contact`.
889+ pub ( crate ) async fn contact ( context : & Context ) -> String {
890+ translated ( context, StockMessage :: Contact ) . await
891+ }
892+
885893/// Stock string: `Device messages`.
886894pub ( crate ) async fn device_messages ( context : & Context ) -> String {
887895 translated ( context, StockMessage :: DeviceMessages ) . await
@@ -1251,7 +1259,7 @@ impl Viewtype {
12511259 Viewtype :: Video => video ( context) . await ,
12521260 Viewtype :: File => file ( context) . await ,
12531261 Viewtype :: Webxdc => "Mini App" . to_owned ( ) , // TODO stock-string
1254- Viewtype :: Vcard => "Contact" . to_owned ( ) , // TODO stock-string
1262+ Viewtype :: Vcard => contact ( context ) . await ,
12551263 // OPTIONAL TODO - would not be used right now,
12561264 // because this method is only used for metadata on large attachments
12571265 Viewtype :: Unknown | Viewtype :: Text | Viewtype :: Call => self . to_string ( ) ,
0 commit comments