From 13a729492f2c0bf794e49ec007280f828caa1b64 Mon Sep 17 00:00:00 2001 From: Janez T Date: Fri, 13 Mar 2026 19:56:50 +0100 Subject: [PATCH] fix: update meshcore client ref ref: --- lib/providers/connection_provider.dart | 4 ---- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- .../connection_provider_channel_slot_test.dart | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/lib/providers/connection_provider.dart b/lib/providers/connection_provider.dart index 6abcb19..9f6bada 100644 --- a/lib/providers/connection_provider.dart +++ b/lib/providers/connection_provider.dart @@ -1043,8 +1043,6 @@ class ConnectionProvider with ChangeNotifier { }) async { final maxChannels = _deviceInfo.maxChannels ?? 40; - await syncChannels(maxChannels: maxChannels); - if (getChannelInfo != null) { for (int i = 1; i < maxChannels; i++) { final channel = getChannelInfo!(i); @@ -1104,8 +1102,6 @@ class ConnectionProvider with ChangeNotifier { } } - await syncChannels(maxChannels: maxChannels); - debugPrint('✅ [Provider] Channel created successfully in slot $slotIdx'); } diff --git a/pubspec.lock b/pubspec.lock index 7e8b913..4220874 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -795,8 +795,8 @@ packages: dependency: "direct main" description: path: "." - ref: fbe0803 - resolved-ref: fbe08032df6a76ebc8339cbcca794a95e976a514 + ref: de22b38 + resolved-ref: de22b389bd14641d54908dcd4e94d6a392514d44 url: "https://github.com/dz0ny/meshcore_client.git" source: git version: "0.1.0" diff --git a/pubspec.yaml b/pubspec.yaml index 4f26a3a..022c361 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -44,7 +44,7 @@ dependencies: meshcore_client: git: url: https://github.com/dz0ny/meshcore_client.git - ref: "fbe0803" + ref: "de22b38" # Codec2 ultra-low-bitrate speech codec (FFI plugin) codec2_flutter: diff --git a/test/providers/connection_provider_channel_slot_test.dart b/test/providers/connection_provider_channel_slot_test.dart index bc986e3..2e232c6 100644 --- a/test/providers/connection_provider_channel_slot_test.dart +++ b/test/providers/connection_provider_channel_slot_test.dart @@ -65,5 +65,22 @@ void main() { isNull, ); }); + + test('private channels with same name do not block slot selection', () { + expect( + ConnectionProvider.isDuplicateChannelName( + requestedName: 'RPT_admins', + existingName: 'RPT_admins', + ), + isFalse, + ); + expect( + ConnectionProvider.firstAvailableChannelSlot( + occupiedIndices: {1, 2, 3}, + maxChannels: 6, + ), + 4, + ); + }); }); }