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