mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Fix #2652 - Room list looping and fighting scrolling after filtering
- also fixes filtering empty state vertical centering
This commit is contained in:
@@ -121,6 +121,18 @@ struct HomeScreenViewState: BindableState {
|
||||
var shouldShowEmptyFilterState: Bool {
|
||||
!bindings.isSearchFieldFocused && bindings.filtersState.isFiltering && visibleRooms.isEmpty
|
||||
}
|
||||
|
||||
var shouldShowFilters: Bool {
|
||||
!bindings.isSearchFieldFocused
|
||||
}
|
||||
|
||||
var shouldShowRecoveryKeyConfirmationBanner: Bool {
|
||||
securityBannerMode == .recoveryKeyConfirmation
|
||||
}
|
||||
|
||||
var shouldShowInvitesButton: Bool {
|
||||
!ServiceLocator.shared.settings.roomListInvitesEnabled && hasPendingInvitations && !bindings.isSearchFieldFocused
|
||||
}
|
||||
}
|
||||
|
||||
struct HomeScreenViewStateBindings {
|
||||
|
||||
Reference in New Issue
Block a user