fix crash

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-04-29 13:49:24 +02:00
parent a9bef30da7
commit de07e127e9
No known key found for this signature in database
GPG Key ID: F7AA2A8B65B50220

View File

@ -327,7 +327,6 @@ class ConversationInfoActivity :
when (state) { when (state) {
is ConversationInfoViewModel.GetCapabilitiesSuccessState -> { is ConversationInfoViewModel.GetCapabilitiesSuccessState -> {
spreedCapabilities = state.spreedCapabilities spreedCapabilities = state.spreedCapabilities
handleConversation() handleConversation()
} }
@ -905,8 +904,7 @@ class ConversationInfoActivity :
@Suppress("LongMethod") @Suppress("LongMethod")
private fun handleConversation() { private fun handleConversation() {
val conversationCopy = conversation!! val conversationCopy = conversation ?: return
setUpNotificationSettings(databaseStorageModule!!) setUpNotificationSettings(databaseStorageModule!!)
if (hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.RICH_OBJECT_LIST_MEDIA) && if (hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.RICH_OBJECT_LIST_MEDIA) &&