Add nearestrelay fallback settings

This commit is contained in:
Janez T
2026-03-08 20:05:24 +01:00
parent 9f62055eef
commit a96f96ca4c
2 changed files with 60 additions and 26 deletions

View File

@@ -113,15 +113,16 @@ class PathHistoryService {
await initialize();
await recordLearnedPath(contact);
if (contact.routeHasPath && contact.routeHopCount > 0) {
return PathSelection(
mode: PathSelectionMode.directCurrent,
pathBytes: Uint8List.fromList(contact.routePathBytes),
hopCount: contact.routeHopCount,
hashSize: contact.routeHashSize,
);
}
if (!autoRouteRotationEnabled) {
if (contact.routeHasPath && contact.routeHopCount > 0) {
return PathSelection(
mode: PathSelectionMode.directCurrent,
pathBytes: Uint8List.fromList(contact.routePathBytes),
hopCount: contact.routeHopCount,
hashSize: contact.routeHashSize,
);
}
return PathSelection.flood();
}