Update the strings for the device verification flow (#5419)

* Update the strings for the device verification flow

Part of https://github.com/element-hq/element-meta/issues/2898
This commit is contained in:
Andy Balaam 2025-09-29 16:42:10 +01:00 committed by GitHub
parent 95949e615f
commit 7ce9dc1461
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 23 additions and 20 deletions

View file

@ -238,7 +238,7 @@ private fun IncomingVerificationBottomMenu(
VerificationBottomMenu {
Button(
modifier = Modifier.fillMaxWidth(),
text = stringResource(CommonStrings.action_start),
text = stringResource(CommonStrings.action_start_verification),
onClick = { eventSink(IncomingVerificationViewEvents.StartVerification) },
)
TextButton(

View file

@ -157,7 +157,10 @@ private fun OutgoingVerificationHeader(step: Step, request: VerificationRequest.
}
Step.Canceled -> CommonStrings.common_verification_failed
Step.Ready -> R.string.screen_session_verification_compare_emojis_title
Step.Completed -> CommonStrings.common_verification_complete
Step.Completed -> when (request) {
is VerificationRequest.Outgoing.CurrentSession -> R.string.screen_session_verification_device_verified
is VerificationRequest.Outgoing.User -> CommonStrings.common_verification_complete
}
is Step.Verifying -> when (step.data) {
is SessionVerificationData.Decimals -> R.string.screen_session_verification_compare_numbers_title
is SessionVerificationData.Emojis -> R.string.screen_session_verification_compare_emojis_title

View file

@ -62,7 +62,7 @@ class IncomingVerificationViewTest {
eventSink = eventsRecorder
),
)
rule.clickOn(CommonStrings.action_start)
rule.clickOn(CommonStrings.action_start_verification)
eventsRecorder.assertSingle(IncomingVerificationViewEvents.StartVerification)
}