avoid null

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

View File

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