Skip to content

Commit 1e1a8f7

Browse files
authored
Merge pull request #4937 from nextcloud/crash_for_conversation_info
fix crash
2 parents a9bef30 + de07e12 commit 1e1a8f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ class ConversationInfoActivity :
327327
when (state) {
328328
is ConversationInfoViewModel.GetCapabilitiesSuccessState -> {
329329
spreedCapabilities = state.spreedCapabilities
330-
331330
handleConversation()
332331
}
333332

@@ -905,8 +904,7 @@ class ConversationInfoActivity :
905904

906905
@Suppress("LongMethod")
907906
private fun handleConversation() {
908-
val conversationCopy = conversation!!
909-
907+
val conversationCopy = conversation ?: return
910908
setUpNotificationSettings(databaseStorageModule!!)
911909

912910
if (hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.RICH_OBJECT_LIST_MEDIA) &&

0 commit comments

Comments
 (0)