You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: Remove some unneeded stock strings (#7496)
There are quite some unneeded stock strings; this PR removes some of
them. None of these stock strings were actually set by the UI, or even
have translations in Transifex.
- We don't have AEAP anymore.
- The "I added/removed member" and "I left the group" strings are
anyways not meant to be shown to the user. Also, starting to translate
them now would leak the device language.
BREAKING CHANGE: This can theoretically be a breaking change because a
UI could reference one of the removed stock strings, so I marked it as
breaking just in case.
Copy file name to clipboardExpand all lines: src/stock_str.rs
+1-72Lines changed: 1 addition & 72 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ use crate::accounts::Accounts;
13
13
usecrate::blob::BlobObject;
14
14
usecrate::chat::{self,Chat,ChatId};
15
15
usecrate::config::Config;
16
-
usecrate::contact::{Contact,ContactId,Origin};
16
+
usecrate::contact::{Contact,ContactId};
17
17
usecrate::context::Context;
18
18
usecrate::message::{Message,Viewtype};
19
19
usecrate::param::Param;
@@ -241,11 +241,6 @@ pub enum StockMessage {
241
241
#[strum(props(fallback = "Not connected"))]
242
242
NotConnected = 121,
243
243
244
-
#[strum(props(
245
-
fallback = "You changed your email address from %1$s to %2$s.\n\nIf you now send a message to a verified group, contacts there will automatically replace the old with your new address.\n\nIt's highly advised to set up your old email provider to forward all emails to your new email address. Otherwise you might miss messages of contacts who did not get your new address yet."
246
-
))]
247
-
AeapExplanationAndLink = 123,
248
-
249
244
#[strum(props(fallback = "You changed group name from \"%1$s\" to \"%2$s\"."))]
250
245
MsgYouChangedGrpName = 124,
251
246
@@ -356,22 +351,9 @@ pub enum StockMessage {
356
351
#[strum(props(fallback = "ℹ️ Account transferred to your second device."))]
357
352
BackupTransferMsgBody = 163,
358
353
359
-
#[strum(props(fallback = "I added member %1$s."))]
360
-
MsgIAddMember = 164,
361
-
362
-
#[strum(props(fallback = "I removed member %1$s."))]
363
-
MsgIDelMember = 165,
364
-
365
-
#[strum(props(fallback = "I left the group."))]
366
-
MsgILeftGroup = 166,
367
-
368
354
#[strum(props(fallback = "Messages are end-to-end encrypted."))]
369
355
ChatProtectionEnabled = 170,
370
356
371
-
// deprecated 2025-07
372
-
#[strum(props(fallback = "%1$s sent a message from another device."))]
373
-
ChatProtectionDisabled = 171,
374
-
375
357
#[strum(props(fallback = "Others will only see this group after you sent a first message."))]
0 commit comments