Add in-chat compression selector
A Compression: Off / SMAZ / Cyr2Lat strip at the top of DM and channel chats opens one sheet that explains each mode and holds the Cyr2Lat profile picker. New connector setters keep the modes mutually exclusive. The old switches are removed from contact settings and the channel edit sheet, so editing a channel no longer overwrites its compression setting.
This commit is contained in:
1 parent
34ea0cb7ca
commit
fc5f7eb516
38 files changed
+2302
-551
No files matched your search
@@ -2014,16 +2014,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
return 'Modifica Canale $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_smazCompression => 'Compressione SMAZ';
|
||||
|
||||
@override
|
||||
String get channels_cyr2latCompression => 'Compressione Cyr2Lat';
|
||||
|
||||
@override
|
||||
String get channels_cyr2latCompressionDscr =>
|
||||
'Sostituisce alcuni caratteri cirillici con caratteri latini durante l\'invio.';
|
||||
|
||||
@override
|
||||
String get channels_cyr2latSettingsHeading => 'Impostazioni Cyr2Lat';
|
||||
|
||||
@@ -2754,9 +2744,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get chat_publicKey => 'Chiave pubblica';
|
||||
|
||||
@override
|
||||
String get chat_compressOutgoingMessages => 'Comprimi messaggi in uscita';
|
||||
|
||||
@override
|
||||
String get chat_floodForced => 'Flood (forzato)';
|
||||
|
||||
@@ -7585,4 +7572,51 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get chat_composerOffline =>
|
||||
'Connettiti a una radio per inviare messaggi';
|
||||
|
||||
@override
|
||||
String get chatCompression_title => 'Compression';
|
||||
|
||||
@override
|
||||
String chatCompression_label(String mode) {
|
||||
return 'Compression: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get chatCompression_off => 'Off';
|
||||
|
||||
@override
|
||||
String get chatCompression_smaz => 'SMAZ';
|
||||
|
||||
@override
|
||||
String get chatCompression_cyr2lat => 'Cyr2Lat';
|
||||
|
||||
@override
|
||||
String get chatCompression_changeHint => 'Change compression for this chat';
|
||||
|
||||
@override
|
||||
String get chatCompression_sheetSubtitle =>
|
||||
'Applies to messages you send in this chat. Saved on this phone.';
|
||||
|
||||
@override
|
||||
String get chatCompression_offDescription =>
|
||||
'No compression. Sends your text exactly as typed. Every app can read it. Saves no bytes.';
|
||||
|
||||
@override
|
||||
String get chatCompression_smazDescription =>
|
||||
'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.';
|
||||
|
||||
@override
|
||||
String get chatCompression_cyr2latDescription =>
|
||||
'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.';
|
||||
|
||||
@override
|
||||
String get chatCompression_profile => 'Cyr2Lat profile';
|
||||
|
||||
@override
|
||||
String get chatCompression_noStorageId =>
|
||||
'Can\'t change compression until this channel has synced from the radio.';
|
||||
|
||||
@override
|
||||
String get chatCompression_saveFailed =>
|
||||
'Couldn\'t save the compression setting. Showing the saved setting.';
|
||||
}
|
||||
Reference in new issue
Block a user