damus

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

commit a59cb04ce0b36bc6860e7b8c81a242b935429df4
parent 1ab42b4c5c9820b13863e8c34e3a2a0ed4681430
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  9 Aug 2022 16:09:40 -0700

Hide post button if we still have placeholder text

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

Diffstat:
Mdamus/Views/PostView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift @@ -43,7 +43,7 @@ struct PostView: View { } var is_post_empty: Bool { - return post.allSatisfy { $0.isWhitespace } + return post == POST_PLACEHOLDER || post.allSatisfy { $0.isWhitespace } } var body: some View {