Fix compilation

This commit is contained in:
Valere 2021-08-27 17:55:52 +02:00
parent efa9ff0959
commit 67295c6bdd
1 changed files with 6 additions and 3 deletions

View File

@ -110,7 +110,8 @@ class RoomPreviewNoPreviewFragment @Inject constructor(
PeekingState.FOUND -> { PeekingState.FOUND -> {
// show join buttons // show join buttons
views.roomPreviewNoPreviewJoin.isVisible = true views.roomPreviewNoPreviewJoin.isVisible = true
renderState(bestName, state.matrixItem(), state.roomTopic, state.roomType) renderState(bestName, state.matrixItem(), state.roomTopic
/**, state.roomType*/)
if (state.fromEmailInvite != null && !state.isEmailBoundToAccount) { if (state.fromEmailInvite != null && !state.isEmailBoundToAccount) {
views.roomPreviewNoPreviewLabel.text = views.roomPreviewNoPreviewLabel.text =
span { span {
@ -151,13 +152,15 @@ class RoomPreviewNoPreviewFragment @Inject constructor(
views.roomPreviewNoPreviewJoin.isVisible = true views.roomPreviewNoPreviewJoin.isVisible = true
views.roomPreviewNoPreviewLabel.isVisible = true views.roomPreviewNoPreviewLabel.isVisible = true
views.roomPreviewNoPreviewLabel.setText(R.string.room_preview_no_preview_join) views.roomPreviewNoPreviewLabel.setText(R.string.room_preview_no_preview_join)
renderState(bestName, state.matrixItem().takeIf { state.roomAlias != null }, state.roomTopic, state.roomType) renderState(bestName, state.matrixItem().takeIf { state.roomAlias != null }, state.roomTopic
/**, state.roomType*/)
} }
else -> { else -> {
views.roomPreviewNoPreviewJoin.isVisible = false views.roomPreviewNoPreviewJoin.isVisible = false
views.roomPreviewNoPreviewLabel.isVisible = true views.roomPreviewNoPreviewLabel.isVisible = true
views.roomPreviewNoPreviewLabel.setText(R.string.room_preview_not_found) views.roomPreviewNoPreviewLabel.setText(R.string.room_preview_not_found)
renderState(bestName, null, state.roomTopic, state.roomType) renderState(bestName, null, state.roomTopic
/**, state.roomType*/)
} }
} }
} }