diff --git a/ElementX/Sources/Services/Client/MockClientProxy.swift b/ElementX/Sources/Services/Client/MockClientProxy.swift index 0651b778c2..17ecdafee5 100644 --- a/ElementX/Sources/Services/Client/MockClientProxy.swift +++ b/ElementX/Sources/Services/Client/MockClientProxy.swift @@ -43,7 +43,7 @@ class MockClientProxy: ClientProxyProtocol { func restartSync() { } func roomForIdentifier(_ identifier: String) async -> RoomProxyProtocol? { - guard let room = roomSummaryProvider?.roomListPublisher.value.first(where: { $0.id == identifier }), + guard let room = visibleRoomsSummaryProvider?.roomListPublisher.value.first(where: { $0.id == identifier }), let displayName = room.asFilled?.name else { return nil }