Properly catch MarkAsUnread failures

These may not be exceptions

Change-Id: I5183f96ec19844737fdc112376108198e1e3c96a
This commit is contained in:
SpiritCroc 2021-12-06 11:49:20 +01:00
parent f3393e120b
commit 3eef15ae3e

View File

@ -339,7 +339,7 @@ class RoomListViewModel @AssistedInject constructor(
viewModelScope.launch {
try {
room.setMarkedUnread(action.markedUnread)
} catch (failure: Exception) {
} catch (failure: Throwable) {
_viewEvents.post(RoomListViewEvents.Failure(failure))
}
}