mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 10:48:54 +03:00
Properly catch MarkAsUnread failures
These may not be exceptions Change-Id: I5183f96ec19844737fdc112376108198e1e3c96a
This commit is contained in:
parent
f3393e120b
commit
3eef15ae3e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue