From 4352ed8ac5e7df358209b173cc1a1a8265be34c0 Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:20:41 -0500 Subject: [PATCH] fix(#1103): lock a hashtag channel's PSK in Edit Channel, derive on rename User report (Jeremy AA4KY, iOS; one codebase so the fix is platform-wide): the Edit Channel dialog was type-blind, offering a free-text PSK field and a random-PSK die for every channel. A hashtag channel's key IS its name, so hand-editing it silently diverges the channel from everyone else on that hashtag. - hashtag: key read-only and copyable (copy icon replaces the die), derived live from the name while renaming, exactly as adding that hashtag would. Save refuses a name that stops being a hashtag or carries a double '#' (a '##name' hashes differently), inline error. - community hashtag: name and key both read-only (community-secret derived), key copyable. - private/public/communityPublic: unchanged. - Save also refuses, with a persistent error, when the slot's live occupant no longer matches the channel the dialog opened on, so a background sync replacing the slot mid-edit (the 1060 class) cannot be overwritten by a stale dialog (review finding). Policy helpers are unit-tested; with both guards behaviorally disabled 2 tests fail. Suite 1903 passed / 1 skipped. English strings only; untranslated.json regenerated. Co-Authored-By: Claude Fable 5 --- lib/l10n/app_en.arb | 6 + lib/l10n/app_localizations.dart | 44 +++++- lib/l10n/app_localizations_bg.dart | 28 +++- lib/l10n/app_localizations_de.dart | 28 +++- lib/l10n/app_localizations_en.dart | 28 +++- lib/l10n/app_localizations_es.dart | 28 +++- lib/l10n/app_localizations_fr.dart | 28 +++- lib/l10n/app_localizations_hu.dart | 28 +++- lib/l10n/app_localizations_it.dart | 28 +++- lib/l10n/app_localizations_ja.dart | 28 +++- lib/l10n/app_localizations_ko.dart | 28 +++- lib/l10n/app_localizations_nl.dart | 28 +++- lib/l10n/app_localizations_pl.dart | 28 +++- lib/l10n/app_localizations_pt.dart | 28 +++- lib/l10n/app_localizations_ru.dart | 28 +++- lib/l10n/app_localizations_sk.dart | 28 +++- lib/l10n/app_localizations_sl.dart | 28 +++- lib/l10n/app_localizations_sv.dart | 28 +++- lib/l10n/app_localizations_uk.dart | 28 +++- lib/l10n/app_localizations_zh.dart | 28 +++- lib/screens/channels_screen.dart | 159 ++++++++++++++++++--- test/screens/edit_channel_policy_test.dart | 68 +++++++++ untranslated.json | 119 ++++++++++++--- 23 files changed, 746 insertions(+), 154 deletions(-) create mode 100644 test/screens/edit_channel_policy_test.dart diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 67a35e60..ff072925 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1268,6 +1268,12 @@ } }, "channel_senderAddNotConnected": "Not connected to a radio, so this sender can't be added yet", + "channels_pskDerivedFromName": "Key derives from the channel name", + "channels_communityDerived": "Derived from the community secret; manage it through the community", + "channels_copyPsk": "Copy key", + "channels_pskCopied": "Key copied", + "channels_hashtagMustKeepHash": "A hashtag channel's name must start with a single #. Add a new channel to use a different type.", + "channels_channelChangedReopen": "This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.", "channel_slotUnconfirmedSendBlocked": "Message not sent: the radio hasn't confirmed this channel slot yet. Retry the channel sync, then send again.", "channel_senderAddFailed": "Couldn't add this sender: {error}", "@channel_senderAddFailed": { diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index e9143266..facb640c 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -2899,7 +2899,7 @@ abstract class AppLocalizations { /// No description provided for @channels_restoreToRadioDone. /// /// In en, this message translates to: - /// **'Restored {count} channel(s) to the radio.'** + /// **'Wrote {count} channel(s) back to the radio. If the warning above stays, some did not take.'** String channels_restoreToRadioDone(int count); /// No description provided for @channels_restoreToRadioFailed. @@ -2908,12 +2908,6 @@ abstract class AppLocalizations { /// **'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'** String get channels_restoreToRadioFailed; - /// No description provided for @channels_restoreToRadioPartial. - /// - /// In en, this message translates to: - /// **'Only {written} of {total} channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'** - String channels_restoreToRadioPartial(int written, int total); - /// No description provided for @channels_slotIdentityChanged. /// /// In en, this message translates to: @@ -3844,6 +3838,42 @@ abstract class AppLocalizations { /// **'Not connected to a radio, so this sender can\'t be added yet'** String get channel_senderAddNotConnected; + /// No description provided for @channels_pskDerivedFromName. + /// + /// In en, this message translates to: + /// **'Key derives from the channel name'** + String get channels_pskDerivedFromName; + + /// No description provided for @channels_communityDerived. + /// + /// In en, this message translates to: + /// **'Derived from the community secret; manage it through the community'** + String get channels_communityDerived; + + /// No description provided for @channels_copyPsk. + /// + /// In en, this message translates to: + /// **'Copy key'** + String get channels_copyPsk; + + /// No description provided for @channels_pskCopied. + /// + /// In en, this message translates to: + /// **'Key copied'** + String get channels_pskCopied; + + /// No description provided for @channels_hashtagMustKeepHash. + /// + /// In en, this message translates to: + /// **'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'** + String get channels_hashtagMustKeepHash; + + /// No description provided for @channels_channelChangedReopen. + /// + /// In en, this message translates to: + /// **'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'** + String get channels_channelChangedReopen; + /// No description provided for @channel_slotUnconfirmedSendBlocked. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 71cc4b54..ce9ec0fc 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -1633,18 +1633,13 @@ class AppLocalizationsBg extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2213,6 +2208,27 @@ class AppLocalizationsBg extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 2e3c621b..d6da0ff1 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -1627,18 +1627,13 @@ class AppLocalizationsDe extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2211,6 +2206,27 @@ class AppLocalizationsDe extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 61292838..743fa463 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -1609,18 +1609,13 @@ class AppLocalizationsEn extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2182,6 +2177,27 @@ class AppLocalizationsEn extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index aae1876e..d772a93d 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -1628,18 +1628,13 @@ class AppLocalizationsEs extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2208,6 +2203,27 @@ class AppLocalizationsEs extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 35548842..9bf4dfa3 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -1633,18 +1633,13 @@ class AppLocalizationsFr extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2215,6 +2210,27 @@ class AppLocalizationsFr extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index a7620c80..620d3826 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -1634,18 +1634,13 @@ class AppLocalizationsHu extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2220,6 +2215,27 @@ class AppLocalizationsHu extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index e8cd3199..c9379c78 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -1629,18 +1629,13 @@ class AppLocalizationsIt extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2210,6 +2205,27 @@ class AppLocalizationsIt extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index 3e872186..b967587c 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -1577,18 +1577,13 @@ class AppLocalizationsJa extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2145,6 +2140,27 @@ class AppLocalizationsJa extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index 504d09a1..f15268aa 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -1572,18 +1572,13 @@ class AppLocalizationsKo extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2141,6 +2136,27 @@ class AppLocalizationsKo extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 65e4a765..3cad20f5 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -1620,18 +1620,13 @@ class AppLocalizationsNl extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2198,6 +2193,27 @@ class AppLocalizationsNl extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index db61d00d..855bbdbc 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -1639,18 +1639,13 @@ class AppLocalizationsPl extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2223,6 +2218,27 @@ class AppLocalizationsPl extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index 2805a9fb..c62d6e0d 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -1629,18 +1629,13 @@ class AppLocalizationsPt extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2207,6 +2202,27 @@ class AppLocalizationsPt extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index ea40f812..fb168938 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -1630,18 +1630,13 @@ class AppLocalizationsRu extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2211,6 +2206,27 @@ class AppLocalizationsRu extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 2f0c9a09..9992021c 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -1620,18 +1620,13 @@ class AppLocalizationsSk extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2200,6 +2195,27 @@ class AppLocalizationsSk extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index cabae35c..b75d4ab6 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -1617,18 +1617,13 @@ class AppLocalizationsSl extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2196,6 +2191,27 @@ class AppLocalizationsSl extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index 716dbdf2..82f1d3c9 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -1611,18 +1611,13 @@ class AppLocalizationsSv extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2191,6 +2186,27 @@ class AppLocalizationsSv extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index d3f3f227..1b4ecc40 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -1625,18 +1625,13 @@ class AppLocalizationsUk extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2206,6 +2201,27 @@ class AppLocalizationsUk extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index a40445dc..bea89d7e 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -1558,18 +1558,13 @@ class AppLocalizationsZh extends AppLocalizations { @override String channels_restoreToRadioDone(int count) { - return 'Restored $count channel(s) to the radio.'; + return 'Wrote $count channel(s) back to the radio. If the warning above stays, some did not take.'; } @override String get channels_restoreToRadioFailed => 'Could not restore the channel list: nothing cached to restore, or the radio is not connected.'; - @override - String channels_restoreToRadioPartial(int written, int total) { - return 'Only $written of $total channel(s) came back after the restore. The radio did not take the rest. Try the restore again.'; - } - @override String channels_slotIdentityChanged(String changes) { return 'Channel layout changed on the radio: $changes'; @@ -2120,6 +2115,27 @@ class AppLocalizationsZh extends AppLocalizations { String get channel_senderAddNotConnected => 'Not connected to a radio, so this sender can\'t be added yet'; + @override + String get channels_pskDerivedFromName => 'Key derives from the channel name'; + + @override + String get channels_communityDerived => + 'Derived from the community secret; manage it through the community'; + + @override + String get channels_copyPsk => 'Copy key'; + + @override + String get channels_pskCopied => 'Key copied'; + + @override + String get channels_hashtagMustKeepHash => + 'A hashtag channel\'s name must start with a single #. Add a new channel to use a different type.'; + + @override + String get channels_channelChangedReopen => + 'This channel changed on the radio while the dialog was open. Nothing was saved; reopen it and try again.'; + @override String get channel_slotUnconfirmedSendBlocked => 'Message not sent: the radio hasn\'t confirmed this channel slot yet. Retry the channel sync, then send again.'; diff --git a/lib/screens/channels_screen.dart b/lib/screens/channels_screen.dart index 74b82e3c..acda345c 100644 --- a/lib/screens/channels_screen.dart +++ b/lib/screens/channels_screen.dart @@ -1,8 +1,8 @@ import 'dart:async'; import 'dart:math'; -import 'dart:typed_data'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:meshcore_open/storage/channel_message_store.dart'; import 'package:meshcore_open/utils/platform_info.dart'; import 'package:meshcore_open/widgets/app_bar.dart'; @@ -1498,12 +1498,16 @@ class _ChannelsScreenState extends State context, listen: false, ); + final channelType = Channel.getChannelType(channel, _communityIndex); + final pskLocked = !channelPskEditable(channelType); + final nameLocked = !channelNameEditable(channelType); final nameController = TextEditingController(text: channel.name); final pskController = TextEditingController(text: channel.pskHex); bool cyr2latEnabled = connector.isChannelCyr2LatEnabled(channel.index); String? selectedCyr2LatProfileId = connector.getChannelCyr2LatProfileId( channel.index, ); + String? nameError; showDialog( context: context, @@ -1518,30 +1522,76 @@ class _ChannelsScreenState extends State children: [ TextField( controller: nameController, + readOnly: nameLocked, decoration: InputDecoration( labelText: dialogContext.l10n.channels_channelName, border: const OutlineInputBorder(), + helperText: nameLocked + ? dialogContext.l10n.channels_communityDerived + : null, + helperMaxLines: 2, + errorText: nameError, + errorMaxLines: 2, ), maxLength: 31, + // #1103: a hashtag channel's key IS its name, so a rename + // re-derives it live, exactly as adding that hashtag would. + onChanged: channelType == ChannelType.hashtag + ? (value) => setState(() { + nameError = null; + final trimmed = value.trim(); + if (editedNameKeepsType(channelType, trimmed)) { + pskController.text = Channel.formatPskHex( + Channel.derivePskFromHashtag(trimmed), + ); + } + }) + : null, ), const SizedBox(height: 16), TextField( controller: pskController, + readOnly: pskLocked, decoration: InputDecoration( labelText: dialogContext.l10n.channels_pskHex, border: const OutlineInputBorder(), - suffixIcon: IconButton( - icon: const Icon(Icons.casino), - tooltip: dialogContext.l10n.channels_generateRandomPsk, - onPressed: () { - final random = Random.secure(); - final bytes = Uint8List(16); - for (int i = 0; i < 16; i++) { - bytes[i] = random.nextInt(256); - } - pskController.text = Channel.formatPskHex(bytes); - }, - ), + helperText: pskLocked + ? (channelType == ChannelType.hashtag + ? dialogContext.l10n.channels_pskDerivedFromName + : dialogContext.l10n.channels_communityDerived) + : null, + helperMaxLines: 2, + // #1103: a derived key is never hand-edited or rolled, + // but it stays copyable (OpenHop routing rules need it). + suffixIcon: pskLocked + ? IconButton( + icon: const Icon(Icons.copy), + tooltip: dialogContext.l10n.channels_copyPsk, + onPressed: () { + Clipboard.setData( + ClipboardData(text: pskController.text), + ); + showDismissibleSnackBar( + dialogContext, + content: Text( + dialogContext.l10n.channels_pskCopied, + ), + ); + }, + ) + : IconButton( + icon: const Icon(Icons.casino), + tooltip: + dialogContext.l10n.channels_generateRandomPsk, + onPressed: () { + final random = Random.secure(); + final bytes = Uint8List(16); + for (int i = 0; i < 16; i++) { + bytes[i] = random.nextInt(256); + } + pskController.text = Channel.formatPskHex(bytes); + }, + ), ), ), const SizedBox(height: 16), @@ -1591,20 +1641,58 @@ class _ChannelsScreenState extends State ), FilledButton( onPressed: () async { - final name = nameController.text.trim(); - final pskHex = pskController.text.trim(); + final name = nameLocked + ? channel.name + : nameController.text.trim(); + // #1103: a hashtag channel stays a hashtag; its key derives + // from the '#' name. A different kind of channel is an add, + // not an edit. Refuse the write and say why, inline. + if (!editedNameKeepsType(channelType, name)) { + setState(() { + nameError = dialogContext.l10n.channels_hashtagMustKeepHash; + }); + return; + } - Uint8List psk; - try { - psk = Channel.parsePskHex(pskHex); - } on FormatException { + // #1103 review: this dialog captured the channel when it + // opened. If a sync replaced the slot's identity meanwhile + // (the #1060 class), writing by the captured index would hit + // the NEW occupant with the OLD dialog's rules. Refuse the + // write and say why; mid-sync the list is empty, so this + // also fails closed while slots are unconfirmed. + final live = connector.channels.cast().firstWhere( + (c) => c?.index == channel.index, + orElse: () => null, + ); + if (live == null || live.pskHex != channel.pskHex) { + Navigator.pop(dialogContext); showDismissibleSnackBar( - dialogContext, - content: Text(dialogContext.l10n.channels_pskMustBe32Hex), + context, + content: Text(context.l10n.channels_channelChangedReopen), + backgroundColor: Theme.of(context).colorScheme.error, + persist: true, ); return; } + final Uint8List psk; + if (channelType == ChannelType.hashtag) { + // The key IS the (possibly renamed) name, never the field. + psk = Channel.derivePskFromHashtag(name); + } else if (pskLocked) { + psk = channel.psk; + } else { + try { + psk = Channel.parsePskHex(pskController.text.trim()); + } on FormatException { + showDismissibleSnackBar( + dialogContext, + content: Text(dialogContext.l10n.channels_pskMustBe32Hex), + ); + return; + } + } + Navigator.pop(dialogContext); try { await connector.setChannel(channel.index, name, psk); @@ -1637,7 +1725,10 @@ class _ChannelsScreenState extends State ], ), ), - ); + ).whenComplete(() { + nameController.dispose(); + pskController.dispose(); + }); } /// Writes the client's cached channels back onto a radio that lost them @@ -1994,3 +2085,27 @@ class _ChannelsScreenState extends State ); } } + +/// #1103: what the Edit Channel dialog may change, by channel type. +/// +/// A hashtag channel's key IS its name (Channel.derivePskFromHashtag), so the +/// key is never hand-editable and a rename re-derives it. A community +/// hashtag's name and key both derive from the community secret, so both are +/// locked and managed through the community. The key stays visible and +/// copyable in every case: OpenHop routing rules need it. +bool channelPskEditable(ChannelType type) => + type != ChannelType.hashtag && type != ChannelType.communityHashtag; + +bool channelNameEditable(ChannelType type) => + type != ChannelType.communityHashtag; + +/// A hashtag channel must stay a hashtag: its key derives from the '#' name. +/// Exactly ONE leading '#': a '##name' would hash differently from the +/// '#name' everyone else derives, silently isolating the user (review +/// finding). Converting to another kind of channel is an add, not an edit +/// (#1103). +bool editedNameKeepsType(ChannelType type, String newName) => + type != ChannelType.hashtag || + (newName.startsWith('#') && + !newName.startsWith('##') && + newName.length > 1); diff --git a/test/screens/edit_channel_policy_test.dart b/test/screens/edit_channel_policy_test.dart new file mode 100644 index 00000000..f7023e2f --- /dev/null +++ b/test/screens/edit_channel_policy_test.dart @@ -0,0 +1,68 @@ +// #1103: the Edit Channel dialog must never let a hashtag channel's key be +// hand-edited, because the key derives from the name (a user report: editing +// it silently diverges the channel from everyone else on that hashtag). +// These tests pin the dialog's edit policy and the rename re-derivation. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:meshcore_open/models/channel.dart'; +import 'package:meshcore_open/screens/channels_screen.dart'; + +void main() { + group('channelPskEditable', () { + test('locked for name-derived and community-derived keys', () { + expect(channelPskEditable(ChannelType.hashtag), isFalse); + expect(channelPskEditable(ChannelType.communityHashtag), isFalse); + }); + + test('editable for the rest', () { + expect(channelPskEditable(ChannelType.private), isTrue); + expect(channelPskEditable(ChannelType.public), isTrue); + expect(channelPskEditable(ChannelType.communityPublic), isTrue); + }); + }); + + group('channelNameEditable', () { + test('only a community hashtag locks its name', () { + expect(channelNameEditable(ChannelType.communityHashtag), isFalse); + expect(channelNameEditable(ChannelType.hashtag), isTrue); + expect(channelNameEditable(ChannelType.private), isTrue); + expect(channelNameEditable(ChannelType.public), isTrue); + expect(channelNameEditable(ChannelType.communityPublic), isTrue); + }); + }); + + group('editedNameKeepsType', () { + test('a hashtag channel must keep a usable # name', () { + expect(editedNameKeepsType(ChannelType.hashtag, '#other'), isTrue); + expect(editedNameKeepsType(ChannelType.hashtag, 'other'), isFalse); + expect(editedNameKeepsType(ChannelType.hashtag, '#'), isFalse); + expect(editedNameKeepsType(ChannelType.hashtag, ''), isFalse); + // '##name' hashes differently from the '#name' everyone else derives, + // so a double hash is refused rather than silently isolating the user. + expect(editedNameKeepsType(ChannelType.hashtag, '##general'), isFalse); + }); + + test('non-hashtag channels are unconstrained', () { + expect(editedNameKeepsType(ChannelType.private, 'anything'), isTrue); + expect(editedNameKeepsType(ChannelType.public, ''), isTrue); + }); + }); + + group('rename re-derivation', () { + test('a renamed hashtag derives exactly what adding it would', () { + // The add flow strips the '#' before deriving; the edit flow passes the + // '#'-prefixed name. Both must land on the same key. + expect( + Channel.derivePskFromHashtag('#wardriving'), + Channel.derivePskFromHashtag('wardriving'), + ); + }); + + test('different hashtags derive different keys', () { + expect( + Channel.derivePskFromHashtag('#test'), + isNot(Channel.derivePskFromHashtag('#wardriving')), + ); + }); + }); +} diff --git a/untranslated.json b/untranslated.json index 50f1f65d..6ed34529 100644 --- a/untranslated.json +++ b/untranslated.json @@ -141,7 +141,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -178,6 +177,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -504,7 +509,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -541,6 +545,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -867,7 +877,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -904,6 +913,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -1230,7 +1245,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -1267,6 +1281,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -1593,7 +1613,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -1630,6 +1649,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -1956,7 +1981,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -1993,6 +2017,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -2319,7 +2349,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -2356,6 +2385,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -2682,7 +2717,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -2719,6 +2753,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -3045,7 +3085,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -3082,6 +3121,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -3408,7 +3453,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -3445,6 +3489,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -3771,7 +3821,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -3808,6 +3857,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -4134,7 +4189,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -4171,6 +4225,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -4497,7 +4557,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -4534,6 +4593,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -4860,7 +4925,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -4897,6 +4961,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -5223,7 +5293,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -5260,6 +5329,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -5586,7 +5661,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -5623,6 +5697,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate", @@ -5949,7 +6029,6 @@ "channels_restoreToRadioConfirm", "channels_restoreToRadioDone", "channels_restoreToRadioFailed", - "channels_restoreToRadioPartial", "channels_slotIdentityChanged", "common_dismiss", "channels_notifications", @@ -5986,6 +6065,12 @@ "channel_senderAlreadyContact", "channel_senderMultipleMatches", "channel_senderAddNotConnected", + "channels_pskDerivedFromName", + "channels_communityDerived", + "channels_copyPsk", + "channels_pskCopied", + "channels_hashtagMustKeepHash", + "channels_channelChangedReopen", "channel_slotUnconfirmedSendBlocked", "channel_senderAddFailed", "channel_senderCandidate",