mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Remove the reliance on a room list item and the preview api from the BannedRoomProxy
This commit is contained in:
committed by
Stefan Ceriu
parent
154c44b701
commit
ccf437f5fb
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user