mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
change(invites) : move inviter view to the top
This commit is contained in:
+13
-10
@@ -383,12 +383,19 @@ private fun JoinRoomContent(
|
|||||||
IsKnockedLoadedContent()
|
IsKnockedLoadedContent()
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
DefaultLoadedContent(
|
Column(horizontalAlignment = Alignment.CenterHorizontally) {
|
||||||
modifier = Modifier.verticalScroll(rememberScrollState()),
|
val inviteSender = (contentState.joinAuthorisationStatus as? JoinAuthorisationStatus.IsInvited)?.inviteSender
|
||||||
contentState = contentState,
|
if (inviteSender != null) {
|
||||||
knockMessage = knockMessage,
|
InviteSenderView(inviteSender = inviteSender)
|
||||||
onKnockMessageUpdate = onKnockMessageUpdate
|
Spacer(modifier = Modifier.height(32.dp))
|
||||||
)
|
}
|
||||||
|
DefaultLoadedContent(
|
||||||
|
modifier = Modifier.verticalScroll(rememberScrollState()),
|
||||||
|
contentState = contentState,
|
||||||
|
knockMessage = knockMessage,
|
||||||
|
onKnockMessageUpdate = onKnockMessageUpdate
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -498,10 +505,6 @@ private fun DefaultLoadedContent(
|
|||||||
horizontalAlignment = Alignment.CenterHorizontally,
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
) {
|
) {
|
||||||
val inviteSender = (contentState.joinAuthorisationStatus as? JoinAuthorisationStatus.IsInvited)?.inviteSender
|
|
||||||
if (inviteSender != null) {
|
|
||||||
InviteSenderView(inviteSender = inviteSender)
|
|
||||||
}
|
|
||||||
RoomPreviewDescriptionAtom(contentState.topic ?: "")
|
RoomPreviewDescriptionAtom(contentState.topic ?: "")
|
||||||
if (contentState.joinAuthorisationStatus is JoinAuthorisationStatus.CanKnock) {
|
if (contentState.joinAuthorisationStatus is JoinAuthorisationStatus.CanKnock) {
|
||||||
Spacer(modifier = Modifier.height(24.dp))
|
Spacer(modifier = Modifier.height(24.dp))
|
||||||
|
|||||||
Reference in New Issue
Block a user