mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-30 23:33:01 +10:00
feat: Add community management features with QR code scanning
- Implement Community model for managing community data, including secret handling and PSK derivation. - Create CommunityQrScannerScreen for scanning and joining communities via QR codes. - Develop CommunityStore for persisting community data using SharedPreferences. - Introduce QrCodeDisplay widget for displaying QR codes with customizable options. - Add QrScannerWidget for reusable QR code scanning functionality with validation and controls.
This commit is contained in:
@@ -1615,6 +1615,10 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
await sendFrame(buildSetChannelFrame(index, '', Uint8List(16)));
|
||||
_channelLastReadMs.remove(index);
|
||||
_unreadStore.saveChannelLastRead(Map<int, int>.from(_channelLastReadMs));
|
||||
// Clear stored messages for this channel
|
||||
await _channelMessageStore.clearChannelMessages(index);
|
||||
// Clear in-memory messages for this channel
|
||||
_channelMessages.remove(index);
|
||||
// Refresh channels after deleting
|
||||
await getChannels();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user