mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fix search in the Change Roles screen. (#3138)
This commit is contained in:
@@ -20,9 +20,7 @@ import SwiftUI
|
|||||||
struct RoomChangeRolesScreen: View {
|
struct RoomChangeRolesScreen: View {
|
||||||
@ObservedObject var context: RoomChangeRolesScreenViewModel.Context
|
@ObservedObject var context: RoomChangeRolesScreenViewModel.Context
|
||||||
|
|
||||||
var showTopSection: Bool {
|
var showTopSection: Bool { !context.viewState.membersWithRole.isEmpty }
|
||||||
!context.viewState.membersWithRole.isEmpty || context.viewState.isSearching
|
|
||||||
}
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
mainContent
|
mainContent
|
||||||
@@ -56,14 +54,14 @@ struct RoomChangeRolesScreen: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RoomChangeRolesScreenSection(members: context.viewState.administrators,
|
RoomChangeRolesScreenSection(members: context.viewState.visibleAdministrators,
|
||||||
title: L10n.screenRoomChangeRoleSectionAdministrators,
|
title: L10n.screenRoomChangeRoleSectionAdministrators,
|
||||||
isAdministratorsSection: true,
|
isAdministratorsSection: true,
|
||||||
context: context)
|
context: context)
|
||||||
RoomChangeRolesScreenSection(members: context.viewState.moderators,
|
RoomChangeRolesScreenSection(members: context.viewState.visibleModerators,
|
||||||
title: L10n.screenRoomChangeRoleSectionModerators,
|
title: L10n.screenRoomChangeRoleSectionModerators,
|
||||||
context: context)
|
context: context)
|
||||||
RoomChangeRolesScreenSection(members: context.viewState.users,
|
RoomChangeRolesScreenSection(members: context.viewState.visibleUsers,
|
||||||
title: L10n.screenRoomChangeRoleSectionUsers,
|
title: L10n.screenRoomChangeRoleSectionUsers,
|
||||||
context: context)
|
context: context)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user