mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-31 15:52:25 +10:00
Fix trace route bytes generation logic in Contact model
This commit is contained in:
@@ -119,7 +119,7 @@ class Contact {
|
|||||||
final pathBytes = _pathBytesForDisplay;
|
final pathBytes = _pathBytesForDisplay;
|
||||||
Uint8List? traceBytes;
|
Uint8List? traceBytes;
|
||||||
|
|
||||||
if (pathLength <= 0) {
|
if (pathBytes.isEmpty) {
|
||||||
traceBytes = Uint8List(1);
|
traceBytes = Uint8List(1);
|
||||||
traceBytes[0] = publicKey[0];
|
traceBytes[0] = publicKey[0];
|
||||||
return traceBytes;
|
return traceBytes;
|
||||||
|
|||||||
Reference in New Issue
Block a user