Merge pull request #4702 from nextcloud/pr-4674-follow-up

Added offline check in handleHttpExceptions in ConversationsListActivity
This commit is contained in:
Marcel Hibbe 2025-02-17 11:03:11 +00:00 committed by GitHub
commit bd720b8261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {