mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
Merge pull request #4702 from nextcloud/pr-4674-follow-up
Added offline check in handleHttpExceptions in ConversationsListActivity
This commit is contained in:
commit
bd720b8261
@ -1055,6 +1055,8 @@ class ConversationsListActivity :
|
||||
}
|
||||
|
||||
private fun handleHttpExceptions(throwable: Throwable) {
|
||||
if (!networkMonitor.isOnline.value) return
|
||||
|
||||
if (throwable is HttpException) {
|
||||
when (throwable.code()) {
|
||||
HTTP_UNAUTHORIZED -> showUnauthorizedDialog()
|
||||
@ -2020,7 +2022,6 @@ class ConversationsListActivity :
|
||||
private fun onMessageSearchError(throwable: Throwable) {
|
||||
handleHttpExceptions(throwable)
|
||||
binding.swipeRefreshLayoutView?.isRefreshing = false
|
||||
showErrorDialog()
|
||||
}
|
||||
|
||||
fun updateFilterState(mention: Boolean, unread: Boolean) {
|
||||
|
Loading…
Reference in New Issue
Block a user