Merge pull request #5124 from nextcloud/crash_fix

Crash fix
This commit is contained in:
Marcel Hibbe 2025-07-07 12:25:47 +02:00 committed by GitHub
commit 41e12ec19d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -300,7 +300,7 @@ class ConversationsListActivity :
} else { } else {
binding.loadingContent.visibility = View.GONE binding.loadingContent.visibility = View.GONE
} }
adapter!!.addListener(this) adapter?.addListener(this)
prepareViews() prepareViews()
showNotificationWarning() showNotificationWarning()
@ -316,8 +316,10 @@ class ConversationsListActivity :
showServerEOLDialog() showServerEOLDialog()
return return
} }
if (isUnifiedSearchAvailable(currentUser!!.capabilities!!.spreedCapability!!)) { currentUser?.capabilities?.spreedCapability?.let { spreedCapabilities ->
searchHelper = MessageSearchHelper(unifiedSearchRepository) if (isUnifiedSearchAvailable(spreedCapabilities)) {
searchHelper = MessageSearchHelper(unifiedSearchRepository)
}
} }
credentials = ApiUtils.getCredentials(currentUser!!.username, currentUser!!.token) credentials = ApiUtils.getCredentials(currentUser!!.username, currentUser!!.token)