damus

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

commit c719058487570d7c64721372eb11eb10760c2550
parent ab853c406c1b6c7d71d4ee4bdfa90969213a8582
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 12 Apr 2023 11:26:41 -0700

Revert "Remove duplicate share sheet action"

This reverts commit 2b34e88a4775e65ba0bd03f07411b8391ab5a777.

Diffstat:
Mdamus/Views/ActionBar/EventActionBar.swift | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/damus/Views/ActionBar/EventActionBar.swift b/damus/Views/ActionBar/EventActionBar.swift @@ -112,6 +112,13 @@ struct EventActionBar: View { } } } + .sheet(isPresented: $show_share_sheet) { + if let note_id = bech32_note_id(event.id) { + if let url = URL(string: "https://damus.io/" + note_id) { + ShareSheet(activityItems: [url]) + } + } + } .onReceive(handle_notify(.update_stats)) { n in let target = n.object as! String guard target == self.event.id else { return }