knock : adjust api while sdk is not ready.

This commit is contained in:
ganfra 2024-10-22 16:49:39 +02:00
parent 512b362615
commit 89ac2a6831
3 changed files with 21 additions and 13 deletions

View file

@ -137,7 +137,8 @@ class RustRoomFactory(
return@withContext null
}
val innerRoom = try {
roomListItem.roomWithoutTimeline()
// TODO use new method when available, for now it'll fail for knocked rooms
roomListItem.invitedRoom()
} catch (e: RoomListException) {
Timber.e(e, "Failed to get pending room for $roomId")
return@withContext null