damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | LICENSE

commit 698ddb31cceecfaf36e4fe3e2f619e377c8291ca
parent cdbcf0f6e0c2ef29944faab7c794e39ae969dbfb
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 16 Apr 2022 08:30:04 -0700

EventView: dont show pow if it's less than 10

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/EventView.swift | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift @@ -42,9 +42,11 @@ struct EventView: View { } .frame(maxWidth: .infinity, alignment: .leading) Spacer() - Text("\(event.pow ?? 0)") - .font(.callout) - .foregroundColor(calculate_pow_color(event.pow ?? 0)) + if (event.pow ?? 0) >= 10 { + Text("\(event.pow ?? 0)") + .font(.callout) + .foregroundColor(calculate_pow_color(event.pow ?? 0)) + } } Text(event.content) .textSelection(.enabled)