mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fixes #594 - Do not disable the session verification banner if the room list is the empty or loading state
This commit is contained in:
committed by
Stefan Ceriu
parent
19303de8fa
commit
9fe81d977c
@@ -38,10 +38,10 @@ struct HomeScreen: View {
|
|||||||
ForEach(context.viewState.visibleRooms) { room in
|
ForEach(context.viewState.visibleRooms) { room in
|
||||||
HomeScreenRoomCell(room: room, context: context)
|
HomeScreenRoomCell(room: room, context: context)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
.disabled(true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.shimmer()
|
.shimmer()
|
||||||
|
.disabled(context.viewState.roomListMode == .skeletons)
|
||||||
} else {
|
} else {
|
||||||
LazyVStack(spacing: 0) {
|
LazyVStack(spacing: 0) {
|
||||||
ForEach(context.viewState.visibleRooms) { room in
|
ForEach(context.viewState.visibleRooms) { room in
|
||||||
@@ -75,7 +75,6 @@ struct HomeScreen: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.scrollDismissesKeyboard(.immediately)
|
.scrollDismissesKeyboard(.immediately)
|
||||||
.disabled(context.viewState.roomListMode == .skeletons)
|
|
||||||
.animation(.elementDefault, value: context.viewState.showSessionVerificationBanner)
|
.animation(.elementDefault, value: context.viewState.showSessionVerificationBanner)
|
||||||
.animation(.elementDefault, value: context.viewState.roomListMode)
|
.animation(.elementDefault, value: context.viewState.roomListMode)
|
||||||
.alert(item: $context.alertInfo) { $0.alert }
|
.alert(item: $context.alertInfo) { $0.alert }
|
||||||
|
|||||||
Reference in New Issue
Block a user