From b179a62a22d515099ed8d4be9e72396ceb2a468b Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Tue, 14 Sep 2021 22:49:00 +0900 Subject: [PATCH] client: always show yourself as 'conneted' to avoid confusion --- client/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/main.rs b/client/src/main.rs index 92c78d2..7b6a505 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -1009,17 +1009,19 @@ fn print_peer(peer: &PeerState, short: bool, level: usize) { .map(|info| info.is_recently_connected()) .unwrap_or_default(); + let is_you = info.is_none(); + println_pad!( pad, "| {} {}: {} ({}{}…)", - if connected { + if connected || is_you { "◉".bold() } else { "◯".dimmed() }, peer.ip.to_string().yellow().bold(), peer.name.yellow(), - if info.is_none() { "you, " } else { "" }, + if is_you { "you, " } else { "" }, &peer.public_key[..6].dimmed(), ); } else {