mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-29 13:47:34 +10:00
🔄 Changes
Core Features Unread Message Tracking: Added persistent unread counts for contacts and channels with visual badges Message Deletion: Users can now long-press to delete individual messages in chats and channels SMAZ Compression: Added per-contact compression settings (previously only channels) UTF-8 Length Limiting: Text inputs now enforce protocol byte limits correctly Channel Message Paths: New screen to visualize packet routing through repeater network with map view Protocol Updates Added maxContactMessageBytes() and maxChannelMessageBytes() helpers for message length validation Changed channel PSK format from Base64 to Hexadecimal (breaking change) Added app version field to connection handshake frame UI Improvements Unread badges on all contact and channel list items Enhanced message bubbles with path visualization for channel messages Character count displays in message input fields Improved repeater CLI screen functionality New Files lib/storage/unread_store.dart - Unread tracking persistence lib/storage/contact_settings_store.dart - Per-contact SMAZ settings lib/widgets/unread_badge.dart - Unread count indicator lib/helpers/utf8_length_limiter.dart - Byte-aware text input formatter lib/screens/channel_message_path_screen.dart - Packet path visualization
This commit is contained in:
@@ -445,10 +445,10 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
commands.add('set privacy ${_privacyMode ? "on" : "off"}');
|
||||
|
||||
// Advertisement intervals
|
||||
commands.add('set advert.interval ${_advertInterval}');
|
||||
commands.add('set flood.advert.interval ${_floodAdvertInterval}');
|
||||
commands.add('set advert.interval $_advertInterval');
|
||||
commands.add('set flood.advert.interval $_floodAdvertInterval');
|
||||
if (_privacyMode) {
|
||||
commands.add('set priv.advert.interval ${_privAdvertInterval}');
|
||||
commands.add('set priv.advert.interval $_privAdvertInterval');
|
||||
}
|
||||
|
||||
// Send all commands
|
||||
@@ -661,7 +661,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
DropdownButtonFormField<int>(
|
||||
value: _bandwidth,
|
||||
initialValue: _bandwidth,
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Bandwidth',
|
||||
border: OutlineInputBorder(),
|
||||
@@ -683,7 +683,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
DropdownButtonFormField<int>(
|
||||
value: _spreadingFactor,
|
||||
initialValue: _spreadingFactor,
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Spreading Factor',
|
||||
border: OutlineInputBorder(),
|
||||
@@ -705,7 +705,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
DropdownButtonFormField<int>(
|
||||
value: _codingRate,
|
||||
initialValue: _codingRate,
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Coding Rate',
|
||||
border: OutlineInputBorder(),
|
||||
@@ -841,7 +841,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
const Divider(),
|
||||
ListTile(
|
||||
title: const Text('Local Advertisement Interval'),
|
||||
subtitle: Text('${_advertInterval} minutes'),
|
||||
subtitle: Text('$_advertInterval minutes'),
|
||||
trailing: Text('${_advertInterval}m'),
|
||||
),
|
||||
Slider(
|
||||
@@ -860,7 +860,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
const SizedBox(height: 16),
|
||||
ListTile(
|
||||
title: const Text('Flood Advertisement Interval'),
|
||||
subtitle: Text('${_floodAdvertInterval} hours'),
|
||||
subtitle: Text('$_floodAdvertInterval hours'),
|
||||
trailing: Text('${_floodAdvertInterval}h'),
|
||||
),
|
||||
Slider(
|
||||
@@ -880,7 +880,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
const SizedBox(height: 16),
|
||||
ListTile(
|
||||
title: const Text('Encrypted Advertisement Interval'),
|
||||
subtitle: Text('${_privAdvertInterval} minutes'),
|
||||
subtitle: Text('$_privAdvertInterval minutes'),
|
||||
trailing: Text('${_privAdvertInterval}m'),
|
||||
),
|
||||
Slider(
|
||||
|
||||
Reference in New Issue
Block a user