mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 12:35:30 +03:00
write logs for exceptions in viewModel
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
4dc1352032
commit
489f9f0fd5
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,7 @@ class ConversationInfoViewModel @Inject constructor(
|
|||
_getTalkBanState.value = ListBansSuccessState(listBans)
|
||||
} catch (exception: Exception) {
|
||||
_getTalkBanState.value = ListBansErrorState
|
||||
Log.e(TAG, "Error while getting list of banned participants", exception)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -165,6 +166,7 @@ class ConversationInfoViewModel @Inject constructor(
|
|||
_getBanActorState.value = BanActorSuccessState(talkBan)
|
||||
} catch (exception: Exception) {
|
||||
_getBanActorState.value = BanActorErrorState
|
||||
Log.e(TAG, "Error banning a participant", exception)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -201,6 +203,7 @@ class ConversationInfoViewModel @Inject constructor(
|
|||
_getUnBanActorState.value = UnBanActorSuccessState
|
||||
} catch (exception: Exception) {
|
||||
_getUnBanActorState.value = UnBanActorErrorState
|
||||
Log.e(TAG, "Error while unbanning a participant", exception)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue