mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
fix crash
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
a9bef30da7
commit
de07e127e9
@ -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) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user