ComposeViewModel: fix syntax errors

main
Alibek Omarov 5 years ago
parent 262e7e9445
commit 291eb4100d
  1. 4
      app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt

@ -70,7 +70,7 @@ class ComposeViewModel
pollMaxOptions = instance?.maxPollOptions ?: DEFAULT_MAX_OPTION_COUNT, pollMaxOptions = instance?.maxPollOptions ?: DEFAULT_MAX_OPTION_COUNT,
pollMaxLength = instance?.maxPollOptionLength ?: DEFAULT_MAX_OPTION_LENGTH, pollMaxLength = instance?.maxPollOptionLength ?: DEFAULT_MAX_OPTION_LENGTH,
supportsScheduled = instance?.version?.let { VersionUtils(it).supportsScheduledToots() } ?: false, supportsScheduled = instance?.version?.let { VersionUtils(it).supportsScheduledToots() } ?: false,
supportsFormatting = instance?.version?.let { VersionUtils(it).isPleroma() } ?: false supportsFormatting = instance?.version?.let { VersionUtils(it).isPleroma() } ?: false,
hasNoAttachmentLimits = instance?.version?.let { VersionUtils(it).isPleroma() } ?: false hasNoAttachmentLimits = instance?.version?.let { VersionUtils(it).isPleroma() } ?: false
) )
} }
@ -459,5 +459,5 @@ data class ComposeInstanceParams(
val pollMaxLength: Int, val pollMaxLength: Int,
val supportsScheduled: Boolean, val supportsScheduled: Boolean,
val supportsFormatting: Boolean, val supportsFormatting: Boolean,
val hasNoAttachmentLimits: Boolean, val hasNoAttachmentLimits: Boolean
) )

Loading…
Cancel
Save