Merge pull request #4937 from nextcloud/crash_for_conversation_info

fix crash
This commit is contained in:
Marcel Hibbe 2025-05-14 14:43:28 +00:00 committed by GitHub
commit 1e1a8f7f21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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