Skip to content

Commit 08c3e91

Browse files
committed
Change You left the group string to You left to also fit for broadcast channels
1 parent 16f7c39 commit 08c3e91

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

deltachat-ffi/deltachat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7419,7 +7419,7 @@ void dc_event_unref(dc_event_t* event);
74197419
/// Used in status messages.
74207420
#define DC_STR_REMOVE_MEMBER_BY_OTHER 131
74217421

7422-
/// "You left the group."
7422+
/// "You left."
74237423
///
74247424
/// Used in status messages.
74257425
#define DC_STR_GROUP_LEFT_BY_YOU 132

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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Group#Chat#10: Group chat [3 member(s)]
22
--------------------------------------------------------------------------------
33
Msg#10🔒: (Contact#Contact#10): Hi! I created a group. [FRESH]
4-
Msg#11🔒: Me (Contact#Contact#Self): You left the group. [INFO] √
4+
Msg#11🔒: Me (Contact#Contact#Self): You left. [INFO] √
55
Msg#12🔒: (Contact#Contact#10): Member charlie@example.net added by alice@example.org. [FRESH][INFO]
66
Msg#13🔒: (Contact#Contact#10): What a silence! [FRESH]
77
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)