mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Add avatars display on map
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user