mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-13 01:10:28 +00:00
feat: Add support for hash and private channels with corresponding UI updates
- Introduced new localization strings for channel types and their descriptions in Italian, German, Spanish, French, Croatian, Slovenian, and English. - Updated the `AppProvider` to handle channel info reception, including deletion of channels and updating the UI accordingly. - Enhanced `ChannelsProvider` to support channel removal and notify listeners. - Modified `ConnectionProvider` to include methods for checking empty channel slots and deleting channels. - Updated BLE service methods to handle channel deletion and verification. - Improved the `AddChannelDialog` to differentiate between hash and private channels, including dynamic UI elements based on channel type. - Added delete functionality for channels in the `ContactTile` widget with confirmation dialogs. - Adjusted permission request dialog behavior to allow dismissing by tapping outside.
This commit is contained in:
@@ -3723,6 +3723,18 @@ abstract class AppLocalizations {
|
||||
/// **'This secret must be shared with all team members who need access to this channel'**
|
||||
String get channelSecretHelp;
|
||||
|
||||
/// Information banner explaining hash and private channel types
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Hash channels (#team): Secret auto-generated from name. Same name = same channel across devices.\n\nPrivate channels: Use explicit secret. Only those with the secret can join.'**
|
||||
String get channelTypesInfo;
|
||||
|
||||
/// Help text for hash channels (# prefix)
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Hash channel: Secret will be auto-generated from the channel name. Anyone using the same name will join the same channel.'**
|
||||
String get hashChannelInfo;
|
||||
|
||||
/// Validation error for empty channel name
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
Reference in New Issue
Block a user