fix: Correct channel addition logic to prevent duplicates based on pskHex

This commit is contained in:
Winston Lowe
2026-05-12 18:31:55 -07:00
parent f4b32e8a8a
commit e1cc285c8a
+1 -1
View File
@@ -5152,7 +5152,7 @@ class MeshCoreConnector extends ChangeNotifier {
// Only add non-empty channels
if (!channel.isEmpty &&
_channels.any((c) => c.pskHex != channel.pskHex)) {
!_channels.any((c) => c.pskHex == channel.pskHex)) {
_channels.add(channel);
}