Fix crash when reposting
Changelog-Fixed: Fix crash when reposting
This commit is contained in:
@@ -565,7 +565,9 @@ struct ContentView: View {
|
|||||||
current_boost = nil
|
current_boost = nil
|
||||||
}
|
}
|
||||||
Button(NSLocalizedString("Repost", comment: "Button to confirm reposting a post.")) {
|
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: {
|
} message: {
|
||||||
Text("Are you sure you want to repost this?", comment: "Alert message to ask if user wants to repost a post.")
|
Text("Are you sure you want to repost this?", comment: "Alert message to ask if user wants to repost a post.")
|
||||||
|
|||||||
Reference in New Issue
Block a user