fix crash

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-07-04 21:33:47 +02:00 committed by backportbot[bot]
parent 2fade40b2e
commit 14a7eca808

View File

@ -298,7 +298,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()
@ -314,7 +314,7 @@ class ConversationsListActivity :
showServerEOLDialog() showServerEOLDialog()
return return
} }
if (isUnifiedSearchAvailable(currentUser!!.capabilities!!.spreedCapability!!)) { if (isUnifiedSearchAvailable(currentUser!!.capabilities?.spreedCapability!!)) {
searchHelper = MessageSearchHelper(unifiedSearchRepository) searchHelper = MessageSearchHelper(unifiedSearchRepository)
} }
credentials = ApiUtils.getCredentials(currentUser!!.username, currentUser!!.token) credentials = ApiUtils.getCredentials(currentUser!!.username, currentUser!!.token)