mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Use local room list sorting from Rust. (#2978)
* Switch to the new local room list sorting API * Get rid of the RoomSummary enum, replace it by the inner RoomSummaryDetails * And finally, rename RoomSummaryDetails to RoomSummary * Fix a bunch of warnings * Small tidy up post rebase/review. - Remove unused invalidated property. - Rename some RoomSummary instances to summary instead of details. - Fix tests with missing roomListItem's. * Update snapshots --------- Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
@@ -92,14 +92,7 @@ extension ClientProxyMock {
|
||||
return nil
|
||||
}
|
||||
|
||||
let roomID = room.id ?? UUID().uuidString
|
||||
|
||||
switch room {
|
||||
case .empty:
|
||||
return await RoomProxyMock(.init(name: "Empty room"))
|
||||
case .filled(let details), .invalidated(let details):
|
||||
return await RoomProxyMock(.init(id: roomID, name: details.name))
|
||||
}
|
||||
return await RoomProxyMock(.init(id: room.id, name: room.name))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user