Skip to content

Commit 988a64f

Browse files
committed
Change You left the group string to You left to also fit for broadcast channels
1 parent 94a43bf commit 988a64f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/chat/chat_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ async fn test_member_add_remove() -> Result<()> {
373373
// Alice leaves the chat.
374374
remove_contact_from_chat(&alice, alice_chat_id, ContactId::SELF).await?;
375375
let sent = alice.pop_sent_msg().await;
376-
assert_eq!(sent.load_from_db().await.get_text(), "You left the group.");
376+
assert_eq!(sent.load_from_db().await.get_text(), "You left.");
377377

378378
Ok(())
379379
}

src/stock_str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub enum StockMessage {
285285
#[strum(props(fallback = "Member %1$s removed by %2$s."))]
286286
MsgDelMemberBy = 131,
287287

288-
#[strum(props(fallback = "You left the group."))]
288+
#[strum(props(fallback = "You left."))]
289289
MsgYouLeftGroup = 132,
290290

291291
#[strum(props(fallback = "Group left by %1$s."))]
@@ -685,7 +685,7 @@ pub(crate) async fn msg_group_left_remote(context: &Context) -> String {
685685
translated(context, StockMessage::MsgILeftGroup).await
686686
}
687687

688-
/// Stock string: `You left the group.` or `Group left by %1$s.`.
688+
/// Stock string: `You left.` or `Group left by %1$s.`.
689689
pub(crate) async fn msg_group_left_local(context: &Context, by_contact: ContactId) -> String {
690690
if by_contact == ContactId::SELF {
691691
translated(context, StockMessage::MsgYouLeftGroup).await

0 commit comments

Comments
 (0)