mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 19:36:08 +03:00
Replaces elvis false if orFalse
This commit is contained in:
parent
c0da9f6bf0
commit
039c9c60fe
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ import im.vector.app.features.home.AvatarRenderer
|
|||
import im.vector.app.features.home.room.list.spaceChildInfoItem
|
||||
import im.vector.lib.core.utils.epoxy.charsequence.toEpoxyCharSequence
|
||||
import me.gujun.android.span.span
|
||||
import org.matrix.android.sdk.api.extensions.orFalse
|
||||
import org.matrix.android.sdk.api.failure.Failure
|
||||
import org.matrix.android.sdk.api.failure.MatrixError.Companion.M_UNRECOGNIZED
|
||||
import org.matrix.android.sdk.api.session.room.members.ChangeMembershipState
|
||||
|
@ -145,7 +146,7 @@ class SpaceDirectoryController @Inject constructor(
|
|||
matrixItem(matrixItem)
|
||||
avatarRenderer(host.avatarRenderer)
|
||||
topic(info.topic)
|
||||
suggested(info.suggested ?: false)
|
||||
suggested(info.suggested.orFalse())
|
||||
errorLabel(
|
||||
error?.let {
|
||||
host.stringProvider.getString(R.string.error_failed_to_join_room, host.errorFormatter.toHumanReadable(it))
|
||||
|
|
Loading…
Reference in a new issue