mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Merge pull request #3989 from element-hq/feature/fga/room_preview_crash
fix(room_preview) : catch all exception instead
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ class RustRoomFactory(
|
|||||||
}
|
}
|
||||||
val innerRoom = try {
|
val innerRoom = try {
|
||||||
roomListItem.previewRoom(via = emptyList())
|
roomListItem.previewRoom(via = emptyList())
|
||||||
} catch (e: RoomListException) {
|
} catch (e: Exception) {
|
||||||
Timber.e(e, "Failed to get pending room for $roomId")
|
Timber.e(e, "Failed to get pending room for $roomId")
|
||||||
return@withContext null
|
return@withContext null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user