mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Minor fixes.
- Marking a room as read on iPad. - Potential state machine crash if you swipe to dismiss verification.
This commit is contained in:
@@ -32,7 +32,7 @@ struct RoomScreen: View {
|
|||||||
.overlay { loadingIndicator }
|
.overlay { loadingIndicator }
|
||||||
.alert(item: $context.alertInfo) { $0.alert }
|
.alert(item: $context.alertInfo) { $0.alert }
|
||||||
.sheet(item: $context.debugInfo) { DebugScreen(info: $0) }
|
.sheet(item: $context.debugInfo) { DebugScreen(info: $0) }
|
||||||
.task {
|
.task(id: context.viewState.roomId) {
|
||||||
// Give a couple of seconds for items to load and to see them.
|
// Give a couple of seconds for items to load and to see them.
|
||||||
try? await Task.sleep(for: .seconds(2))
|
try? await Task.sleep(for: .seconds(2))
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ struct SessionVerificationScreen: View {
|
|||||||
.safeAreaInset(edge: .bottom) { actionButtons.padding() }
|
.safeAreaInset(edge: .bottom) { actionButtons.padding() }
|
||||||
}
|
}
|
||||||
.navigationViewStyle(.stack)
|
.navigationViewStyle(.stack)
|
||||||
|
.interactiveDismissDisabled() // Make sure dismissal goes through the state machine(s).
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Private
|
// MARK: - Private
|
||||||
|
|||||||
Reference in New Issue
Block a user