Properly catch MarkAsUnread failures
These may not be exceptions Change-Id: I5183f96ec19844737fdc112376108198e1e3c96a
This commit is contained in:
parent
f3393e120b
commit
3eef15ae3e
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user