longform: fix tab bar staying hidden when switching to non-longform event
Restore chrome (nav bar + tab bar) when user taps to select a different event in thread view. Previously the tab bar could stay hidden because updateChromeVisibility short-circuits when isLongformEvent is false. Changelog-Fixed: Fixed tab bar staying hidden when switching from longform to non-longform event Signed-off-by: alltheseas <alltheseas@users.noreply.github.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
527b53a7c8
commit
c934bc7653
@@ -398,6 +398,8 @@ struct ChatroomThreadView: View {
|
|||||||
// Reset reading progress when switching to a different event
|
// Reset reading progress when switching to a different event
|
||||||
initialTopY = nil
|
initialTopY = nil
|
||||||
readingProgress = 0
|
readingProgress = 0
|
||||||
|
// Restore chrome when switching events (user tapped to select)
|
||||||
|
showChrome()
|
||||||
}
|
}
|
||||||
.onDisappear() {
|
.onDisappear() {
|
||||||
thread.unsubscribe()
|
thread.unsubscribe()
|
||||||
|
|||||||
Reference in New Issue
Block a user