Merge pull request #3989 from element-hq/feature/fga/room_preview_crash

fix(room_preview) : catch all exception instead
This commit is contained in:
ganfra 2024-12-03 14:21:07 +01:00 committed by GitHub
commit 3d5b834cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,7 @@ class RustRoomFactory(
}
val innerRoom = try {
roomListItem.previewRoom(via = emptyList())
} catch (e: RoomListException) {
} catch (e: Exception) {
Timber.e(e, "Failed to get pending room for $roomId")
return@withContext null
}