Minor fixes.

- Marking a room as read on iPad.
- Potential state machine crash if you swipe to dismiss verification.
This commit is contained in:
Doug
2023-01-31 19:07:32 +00:00
committed by Stefan Ceriu
parent 8f3842f74a
commit 3775569f48
2 changed files with 2 additions and 1 deletions
@@ -32,7 +32,7 @@ struct RoomScreen: View {
.overlay { loadingIndicator }
.alert(item: $context.alertInfo) { $0.alert }
.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.
try? await Task.sleep(for: .seconds(2))