fix many small bugs

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-06-09 11:40:41 -07:00
parent 12785ec4a0
commit e104de6431
11 changed files with 40 additions and 50 deletions

View File

@@ -23,6 +23,7 @@ struct ChatroomView: View {
next_ev: ind == count-1 ? nil : thread.events[ind+1],
damus: damus
)
.event_context_menu(ev)
.onTapGesture {
if thread.initial_event.id == ev.id {
//dismiss()
@@ -56,12 +57,13 @@ struct ChatroomView: View {
/*
struct ChatroomView_Previews: PreviewProvider {
@State var events = [NostrEvent(content: "hello", pubkey: "pubkey")]
static var previews: some View {
ChatroomView(events: events)
let state = test_damus_state()
ChatroomView(damus: state)
.environmentObject(ThreadModel(evid: "&849ab9bb263ed2819db06e05f1a1a3b72878464e8c7146718a2fc1bf1912f893", pool: state.pool))
}
}
*/