mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat(ui): drop echo toasts for actions the screen already shows
L1: Counters reset, Trail reset, Contact added/deleted, Logged in (admin), Logged out, Channel deleted, Share target / Bot channel / Bot room set, PIN set/cleared, Preset saved/deleted, and Unpinned on the favourites grid. L2: Channel deleted, Counters reset, Region/Preset/Scope/Waypoint deleted, Target cleared, Trail cleared, Message history deleted, Contact added/deleted. Failures and Unpinned where the item leaves the screen stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -194,7 +194,6 @@ class NearbyScreen : public UIScreen, protected NearbyModel {
|
||||
uint8_t key[PUB_KEY_SIZE];
|
||||
memcpy(key, e->pub_key, PUB_KEY_SIZE);
|
||||
if (the_mesh.deleteContactByKey(key)) {
|
||||
_task->showAlert("Contact deleted", 1200);
|
||||
_detail = false; // the node this detail/nav view showed is gone
|
||||
_nav = false;
|
||||
refresh();
|
||||
@@ -404,7 +403,6 @@ class NearbyScreen : public UIScreen, protected NearbyModel {
|
||||
const Entry* e = selected();
|
||||
if (e && e->has_key) {
|
||||
if (the_mesh.addDiscoveredContact(e->pub_key, e->name, e->type)) {
|
||||
_task->showAlert("Contact added", 1200);
|
||||
refresh(); // now a known contact — re-sort / re-mark this pass
|
||||
} else {
|
||||
_task->showAlert("Contacts full", 1200);
|
||||
|
||||
Reference in New Issue
Block a user