fix: update meshcore client ref

ref:
This commit is contained in:
Janez T
2026-03-13 19:56:50 +01:00
parent 9d8594fe05
commit 13a729492f
4 changed files with 20 additions and 7 deletions

View File

@@ -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');
}

View File

@@ -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"

View File

@@ -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:

View File

@@ -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,
);
});
});
}