Use 'Dismiss' to close pinned identity changes, instead of 'Ok' (#4454)
This commit is contained in:
parent
6ae9e33377
commit
f969dcf42e
6 changed files with 10 additions and 10 deletions
|
|
@ -43,7 +43,7 @@ fun IdentityChangeStateView(
|
|||
onLinkClick = onLinkClick,
|
||||
textId = CommonStrings.crypto_identity_change_pin_violation_new,
|
||||
isCritical = false,
|
||||
submitTextId = CommonStrings.action_ok,
|
||||
submitTextId = CommonStrings.action_dismiss,
|
||||
onSubmitClick = { state.eventSink(IdentityChangeEvent.PinIdentity(identityChangeViolation.identityRoomMember.userId)) },
|
||||
modifier = modifier,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class IdentityChangeStateViewTest {
|
|||
rule.onNodeWithText("@alice:localhost", substring = true).assertExists("should display user mxid")
|
||||
rule.onNodeWithText("Alice", substring = true).assertExists("should display user displayname")
|
||||
|
||||
rule.clickOn(res = CommonStrings.action_ok)
|
||||
rule.clickOn(res = CommonStrings.action_dismiss)
|
||||
eventsRecorder.assertSingle(IdentityChangeEvent.PinIdentity(UserId("@alice:localhost")))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue