Add avatars display on map

This commit is contained in:
Janez T
2026-03-07 14:17:52 +01:00
parent 0e4f727e26
commit 3307a93640
6 changed files with 137 additions and 10 deletions

View File

@@ -881,12 +881,23 @@ class ContactTile extends StatelessWidget {
TextButton.icon(
onPressed: isPingInProgress
? null
: () {
: () async {
final connectionProvider = context
.read<ConnectionProvider>();
connectionProvider.requestTelemetry(
contact.publicKey,
zeroHop: true,
final result = await connectionProvider.smartPing(
contactPublicKey: contact.publicKey,
hasPath: contact.routeHasPath,
);
if (!context.mounted || result.success) {
return;
}
ToastLogger.error(
context,
AppLocalizations.of(
context,
)!.pingFailed(contact.displayName),
);
},
icon: isPingInProgress