Hard code the room flow to a single room proxy. (#2599)

* Don't give the room flow a split coordinator any more.
This commit is contained in:
Doug
2024-03-27 10:56:58 +00:00
committed by GitHub
parent e424a02a2b
commit 144f3a7fc4
11 changed files with 624 additions and 401 deletions
+3 -1
View File
@@ -84,12 +84,14 @@ extension ClientProxyMock {
guard let room = self?.roomSummaryProvider?.roomListPublisher.value.first(where: { $0.id == identifier }) else {
return nil
}
let roomID = room.id ?? UUID().uuidString
switch room {
case .empty:
return await RoomProxyMock(with: .init(name: "Empty room"))
case .filled(let details), .invalidated(let details):
return await RoomProxyMock(with: .init(name: details.name))
return await RoomProxyMock(with: .init(id: roomID, name: details.name))
}
}
}