File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import org.matrix.rustcomponents.sdk.RoomList
25
25
import org.matrix.rustcomponents.sdk.RoomListEntriesListener
26
26
import org.matrix.rustcomponents.sdk.RoomListEntriesUpdate
27
27
import org.matrix.rustcomponents.sdk.RoomListEntry
28
- import org.matrix.rustcomponents.sdk.RoomListException
29
28
import org.matrix.rustcomponents.sdk.RoomListItem
30
29
import org.matrix.rustcomponents.sdk.RoomListLoadingState
31
30
import org.matrix.rustcomponents.sdk.RoomListLoadingStateListener
@@ -61,7 +60,7 @@ fun RoomList.entriesFlow(onInitialList: suspend (List<RoomListEntry>) -> Unit):
61
60
fun RoomListService.roomOrNull (roomId : String ): RoomListItem ? {
62
61
return try {
63
62
room(roomId)
64
- } catch (exception: RoomListException ) {
63
+ } catch (exception: Exception ) {
65
64
Timber .d(exception, " Failed finding room with id=$roomId ." )
66
65
return null
67
66
}
You can’t perform that action at this time.
0 commit comments