damus

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

commit 42e6281e9b72a31d24fc973c96542df79e2e1a1f
parent ae82114a33e2df266490e9e91765ee632c597cff
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 30 Mar 2023 15:41:10 -0400

Fix crash when reposting

Changelog-Fixed: Fix crash when reposting

Diffstat:
Mdamus/ContentView.swift | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -565,7 +565,9 @@ struct ContentView: View { current_boost = nil } Button(NSLocalizedString("Repost", comment: "Button to confirm reposting a post.")) { - self.damus_state?.pool.send(.event(current_boost!)) + if let current_boost { + self.damus_state?.pool.send(.event(current_boost)) + } } } message: { Text("Are you sure you want to repost this?", comment: "Alert message to ask if user wants to repost a post.")