add "Forwarded:" to summary2,

this affects notifications and the chatlist
This commit is contained in:
Simon Laux
2021-03-22 15:34:05 +01:00
committed by link2xt
parent db1a7023eb
commit 19176d9d47
3 changed files with 157 additions and 17 deletions

View File

@@ -262,6 +262,9 @@ pub enum StockMessage {
#[strum(props(fallback = "Message deletion timer is set to %1$s weeks."))]
MsgEphemeralTimerWeeks = 96,
#[strum(props(fallback = "Forwarded"))]
Forwarded = 97,
}
impl StockMessage {
@@ -856,6 +859,11 @@ pub(crate) async fn msg_ephemeral_timer_weeks(
.await
}
/// Stock string: `Forwarded`.
pub(crate) async fn forwarded(context: &Context) -> String {
translated(context, StockMessage::Forwarded).await
}
impl Context {
/// Set the stock string for the [StockMessage].
///