fix crash

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-07-04 21:33:47 +02:00
parent 5606254a4a
commit b9667e45c0
No known key found for this signature in database
GPG Key ID: F7AA2A8B65B50220

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,7 +316,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)