mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Flatten room list (#121)
* #121 Flatten the room list * #121 Add changelog * #121 UI tweaks for avatar and display name and preview * #121 Make avatar and label one button
This commit is contained in:
@@ -36,20 +36,12 @@ struct HomeScreenViewState: BindableState {
|
||||
|
||||
var isLoadingRooms: Bool = false
|
||||
|
||||
var unencryptedDMs: [HomeScreenRoom] {
|
||||
searchFilteredRooms.filter { $0.isDirect && !$0.isEncrypted }
|
||||
var visibleDMs: [HomeScreenRoom] {
|
||||
searchFilteredRooms.filter { $0.isDirect }
|
||||
}
|
||||
|
||||
var encryptedDMs: [HomeScreenRoom] {
|
||||
searchFilteredRooms.filter { $0.isDirect && $0.isEncrypted}
|
||||
}
|
||||
|
||||
var unencryptedRooms: [HomeScreenRoom] {
|
||||
searchFilteredRooms.filter { !$0.isDirect && !$0.isEncrypted }
|
||||
}
|
||||
|
||||
var encryptedRooms: [HomeScreenRoom] {
|
||||
searchFilteredRooms.filter { !$0.isDirect && $0.isEncrypted }
|
||||
|
||||
var visibleRooms: [HomeScreenRoom] {
|
||||
searchFilteredRooms.filter { !$0.isDirect }
|
||||
}
|
||||
|
||||
private var searchFilteredRooms: LazyFilterSequence<LazySequence<[HomeScreenRoom]>.Elements> {
|
||||
|
||||
Reference in New Issue
Block a user