Updated sidebar to close when tab items at the bottom are clicked too.

This commit is contained in:
Ben Weeks
2023-01-08 01:00:35 +00:00
parent fac1911524
commit cb54ac0494
2 changed files with 8 additions and 7 deletions

View File

@@ -240,7 +240,7 @@ struct ContentView: View {
}
.navigationViewStyle(.stack)
TabBar(new_events: $home.new_events, selected: $selected_timeline, action: switch_timeline)
TabBar(new_events: $home.new_events, selected: $selected_timeline, isSidebarVisible: $isSideBarOpened, action: switch_timeline)
.padding([.bottom], 8)
}
}
@@ -283,7 +283,6 @@ struct ContentView: View {
guard let privkey = self.privkey else {
return
}
let ev = notif.object as! NostrEvent
let boost = make_boost_event(pubkey: pubkey, privkey: privkey, boosted: ev)
self.damus_state?.pool.send(.event(boost))