Remove the reliance on a room list item and the preview api from the BannedRoomProxy

This commit is contained in:
Stefan Ceriu
2025-05-26 10:10:48 +03:00
committed by Stefan Ceriu
parent 154c44b701
commit ccf437f5fb
2 changed files with 9 additions and 18 deletions
@@ -938,9 +938,7 @@ class ClientProxy: ClientProxyProtocol {
case .left:
return .left
case .banned:
return try await .banned(BannedRoomProxy(roomListItem: roomListItem,
roomPreview: roomListItem.previewRoom(via: []),
ownUserID: userID))
return try await .banned(BannedRoomProxy(room: room))
}
} catch {
MXLog.error("Failed retrieving room: \(roomID), with error: \(error)")