fix: Preserve custom path priority

This commit is contained in:
Janez T
2026-04-04 15:57:41 +02:00
parent 4690ceead1
commit 512b64db9f
14 changed files with 3654 additions and 167 deletions

View File

@@ -825,6 +825,7 @@ class ContactTile extends StatelessWidget {
return;
}
await pathHistoryService.clearManualRouteFor(contact.publicKeyHex);
if (context.mounted) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
@@ -855,6 +856,7 @@ class ContactTile extends StatelessWidget {
outPath: Uint8List.fromList(parsedRoute.paddedPathBytes),
),
);
await pathHistoryService.setManualRouteForContact(contact, parsedRoute);
if (context.mounted) {
final routeLabel = parsedRoute.hopCount == 0
? AppLocalizations.of(context)!.direct