damus

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

commit 4c774f2dda6215dcde4a61f24630aa972cea511e
parent b8ec3493dc8450a1c34159a7964be9a0543d8eb5
Author: Terry Yiu <git@tyiu.xyz>
Date:   Mon, 10 Jul 2023 22:56:37 -0400

Fix PostView initial string to skip mentioning self when on own profile

Changelog-Fixed: Fix PostView initial string to skip mentioning self when on own profile
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Reviewed-by: William Casarin <jb55@jb55.com>

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

diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift @@ -190,7 +190,8 @@ struct PostView: View { func initialString() -> NSMutableAttributedString { guard case .posting(let target) = action, - case .user(let pubkey) = target else { + case .user(let pubkey) = target, + damus_state.pubkey != pubkey else { return .init(string: "") }