Move chat compression to the menu with its own page

The Compression control leaves the top of DM and channel chats. The
overflow menu now shows Compression: Off|SMAZ|Cyr2Lat and opens a page
with the three options, short notes and the Cyr2Lat profile picker.
Adds SMAZ codec tests.
This commit is contained in:
zjs81 committed 2026-11-23 20:00:40 -07:00
1 parent d4a6839413
commit f3cdedf7b0
33 files changed
+798 -846

No files matched your search

+4 -10
View File
@@ -12946,7 +12946,7 @@ abstract class AppLocalizations {
/// **'Compression'**
String get chatCompression_title;
/// Always-visible control at the top of a chat; mode is Off, SMAZ or Cyr2Lat
/// Chat menu item that opens the compression page; mode is Off, SMAZ or Cyr2Lat
///
/// In en, this message translates to:
/// **'Compression: {mode}'**
@@ -12970,12 +12970,6 @@ abstract class AppLocalizations {
/// **'Cyr2Lat'**
String get chatCompression_cyr2lat;
/// No description provided for @chatCompression_changeHint.
///
/// In en, this message translates to:
/// **'Change compression for this chat'**
String get chatCompression_changeHint;
/// No description provided for @chatCompression_sheetSubtitle.
///
/// In en, this message translates to:
@@ -12985,19 +12979,19 @@ abstract class AppLocalizations {
/// No description provided for @chatCompression_offDescription.
///
/// In en, this message translates to:
/// **'No compression. Sends your text exactly as typed. Every app can read it. Saves no bytes.'**
/// **'Sends your text as typed. Every app can read it.'**
String get chatCompression_offDescription;
/// No description provided for @chatCompression_smazDescription.
///
/// In en, this message translates to:
/// **'Lossless compression for short text. The recipient\'s app must support SMAZ; other apps show unreadable \"s:…\" text. Only used when it makes a message smaller, so not every message is compressed.'**
/// **'Shrinks English text. Used only when the message gets shorter. Apps without SMAZ show \"s:…\" instead of your text.'**
String get chatCompression_smazDescription;
/// No description provided for @chatCompression_cyr2latDescription.
///
/// In en, this message translates to:
/// **'Not lossless. Swaps some Cyrillic letters for lookalike Latin ones (А→A, З→3) to save bytes. Readable in any app with no decoding, but the exact characters change, including your own sent messages here. Copying, search and technical text may be affected. Results depend on the chosen profile.'**
/// **'Swaps Cyrillic letters for similar Latin ones (А→A). Every app can read it, but the characters change. Not lossless.'**
String get chatCompression_cyr2latDescription;
/// No description provided for @chatCompression_profile.