Skip to content

Commit 878aa39

Browse files
author
ganfra
committed
Also catch Exception instead of RoomListException
1 parent 1d97412 commit 878aa39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomListExtensions.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import org.matrix.rustcomponents.sdk.RoomList
2525
import org.matrix.rustcomponents.sdk.RoomListEntriesListener
2626
import org.matrix.rustcomponents.sdk.RoomListEntriesUpdate
2727
import org.matrix.rustcomponents.sdk.RoomListEntry
28-
import org.matrix.rustcomponents.sdk.RoomListException
2928
import org.matrix.rustcomponents.sdk.RoomListItem
3029
import org.matrix.rustcomponents.sdk.RoomListLoadingState
3130
import org.matrix.rustcomponents.sdk.RoomListLoadingStateListener
@@ -61,7 +60,7 @@ fun RoomList.entriesFlow(onInitialList: suspend (List<RoomListEntry>) -> Unit):
6160
fun RoomListService.roomOrNull(roomId: String): RoomListItem? {
6261
return try {
6362
room(roomId)
64-
} catch (exception: RoomListException) {
63+
} catch (exception: Exception) {
6564
Timber.d(exception, "Failed finding room with id=$roomId.")
6665
return null
6766
}

0 commit comments

Comments
 (0)