fix: Pass selfPoint to _routeCandidates after signature change

This commit is contained in:
Janez T
2026-03-17 09:34:21 +01:00
parent cd165d2372
commit 6187067017

View File

@@ -157,7 +157,7 @@ class _ContactRouteDialogState extends State<ContactRouteDialog> {
final selected = <Contact>[]; final selected = <Contact>[];
final seen = <String>{}; final seen = <String>{};
for (final token in tokens) { for (final token in tokens) {
final match = _routeCandidates final match = _routeCandidates(selfPoint: null)
.where( .where(
(contact) => contact.publicKeyHex.toUpperCase().startsWith(token), (contact) => contact.publicKeyHex.toUpperCase().startsWith(token),
) )
@@ -276,7 +276,7 @@ class _ContactRouteDialogState extends State<ContactRouteDialog> {
.toList(); .toList();
if (tokens.isEmpty) return null; if (tokens.isEmpty) return null;
final lastToken = tokens.last; final lastToken = tokens.last;
final match = _routeCandidates final match = _routeCandidates(selfPoint: null)
.where( .where(
(contact) => contact.publicKeyHex.toUpperCase().startsWith(lastToken), (contact) => contact.publicKeyHex.toUpperCase().startsWith(lastToken),
) )