mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Switch the new bulk room subscription API
This commit is contained in:
committed by
Stefan Ceriu
parent
65bfd84426
commit
4617d0c255
@@ -444,11 +444,17 @@ class ClientProxy: ClientProxyProtocol {
|
||||
}
|
||||
|
||||
func roomForIdentifier(_ identifier: String) async -> RoomProxyProtocol? {
|
||||
guard let roomListService else {
|
||||
MXLog.error("Failed retrieving room, room list service not set up")
|
||||
return nil
|
||||
}
|
||||
|
||||
// Try fetching the room from the cold cache (if available) first
|
||||
var (roomListItem, room) = await roomTupleForIdentifier(identifier)
|
||||
|
||||
if let roomListItem, let room {
|
||||
return await RoomProxy(roomListItem: roomListItem,
|
||||
return await RoomProxy(roomListService: roomListService,
|
||||
roomListItem: roomListItem,
|
||||
room: room)
|
||||
}
|
||||
|
||||
@@ -475,7 +481,8 @@ class ClientProxy: ClientProxyProtocol {
|
||||
return nil
|
||||
}
|
||||
|
||||
return await RoomProxy(roomListItem: roomListItem,
|
||||
return await RoomProxy(roomListService: roomListService,
|
||||
roomListItem: roomListItem,
|
||||
room: room)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user