Skip to content

Commit 700d4c6

Browse files
committed
Hide "They don't match" button when verifying.
1 parent 084fa78 commit 700d4c6

File tree

1 file changed

+10
-5
lines changed
  • features/verifysession/impl/src/main/kotlin/io/element/android/features/verifysession/impl/outgoing

1 file changed

+10
-5
lines changed

features/verifysession/impl/src/main/kotlin/io/element/android/features/verifysession/impl/outgoing/VerifySelfSessionView.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,16 @@ private fun VerifySelfSessionBottomMenu(
342342
}
343343
},
344344
)
345-
TextButton(
346-
modifier = Modifier.fillMaxWidth(),
347-
text = stringResource(R.string.screen_session_verification_they_dont_match),
348-
onClick = { eventSink(VerifySelfSessionViewEvents.DeclineVerification) },
349-
)
345+
if (isVerifying) {
346+
// Placeholder so the 1st button keeps its vertical position
347+
Spacer(modifier = Modifier.height(40.dp))
348+
} else {
349+
TextButton(
350+
modifier = Modifier.fillMaxWidth(),
351+
text = stringResource(R.string.screen_session_verification_they_dont_match),
352+
onClick = { eventSink(VerifySelfSessionViewEvents.DeclineVerification) },
353+
)
354+
}
350355
}
351356
}
352357
is Step.Completed -> {

0 commit comments

Comments
 (0)