This commit is contained in:
fmodf 2024-10-20 20:46:31 +02:00
parent d6f08ca691
commit 78de092b06

View file

@ -26,12 +26,6 @@ struct ContactsScreen: View {
) )
// Contacts list // Contacts list
contactsList
}
}
}
@ViewBuilder private var contactsList: some View {
if !clientsStore.actualRosters.isEmpty { if !clientsStore.actualRosters.isEmpty {
List { List {
ForEach(elements.indices, id: \.self) { index in ForEach(elements.indices, id: \.self) { index in
@ -51,6 +45,8 @@ struct ContactsScreen: View {
Spacer() Spacer()
} }
} }
}
}
private var elements: [Any] { private var elements: [Any] {
if clientsStore.clients.filter({ $0.credentials.isActive }).count == 1 { if clientsStore.clients.filter({ $0.credentials.isActive }).count == 1 {