damus

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

commit 4478348d10b0f9603d197957267f28985abe8a81
parent cf4131f86746a8116459b2ce468e2d7f918f3591
Author: cr0bar <cr0bar@users.noreply.github.com>
Date:   Sat,  8 Jul 2023 20:54:55 +0100

Fix profile post button mentions

Fix for second part of issue #1352 where if you submit a reply from the
+ on a profile, it uses the hex nostr url rather than the bech32
version. When typing the @ manually it uses the bech32 so updated to
mirror this.

Changelog-Fixed: Fix profile post button mentions
Closes: #1355

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 @@ -195,7 +195,8 @@ struct PostView: View { } let profile = damus_state.profiles.lookup(id: pubkey) - return user_tag_attr_string(profile: profile, pubkey: pubkey) + let bech32_pubkey = bech32_pubkey(pubkey) ?? "" + return user_tag_attr_string(profile: profile, pubkey: bech32_pubkey) } func clear_draft() {