diff --git a/library/ui-strings/src/main/res/values/strings.xml b/library/ui-strings/src/main/res/values/strings.xml index bf55ff42d2..736db70fb7 100644 --- a/library/ui-strings/src/main/res/values/strings.xml +++ b/library/ui-strings/src/main/res/values/strings.xml @@ -2503,6 +2503,7 @@ New login. Was this you? Use this session to verify your new one, granting it access to encrypted messages. + A verification request has been sent. Open one of your other sessions to accept and start the verification. This wasn’t me Your account may be compromised diff --git a/vector/src/main/java/im/vector/app/features/crypto/verification/self/SelfVerificationController.kt b/vector/src/main/java/im/vector/app/features/crypto/verification/self/SelfVerificationController.kt index eaad57c412..58d12ef9e6 100644 --- a/vector/src/main/java/im/vector/app/features/crypto/verification/self/SelfVerificationController.kt +++ b/vector/src/main/java/im/vector/app/features/crypto/verification/self/SelfVerificationController.kt @@ -24,6 +24,8 @@ import im.vector.app.R import im.vector.app.core.epoxy.bottomSheetDividerItem import im.vector.app.core.resources.ColorProvider import im.vector.app.core.resources.StringProvider +import im.vector.app.core.ui.list.genericFooterItem +import im.vector.app.core.ui.list.ItemStyle import im.vector.app.features.crypto.verification.epoxy.bottomSheetSelfWaitItem import im.vector.app.features.crypto.verification.epoxy.bottomSheetVerificationActionItem import im.vector.app.features.crypto.verification.epoxy.bottomSheetVerificationNoticeItem @@ -39,6 +41,7 @@ import im.vector.app.features.crypto.verification.user.renderSasTransaction import im.vector.app.features.crypto.verification.user.renderStartTransactionOptions import im.vector.app.features.crypto.verification.user.verifiedSuccessTile import im.vector.app.features.html.EventHtmlRenderer +import im.vector.app.features.spaces.create.SpaceType import im.vector.lib.core.utils.epoxy.charsequence.toEpoxyCharSequence import org.matrix.android.sdk.api.session.crypto.verification.CancelCode import org.matrix.android.sdk.api.session.crypto.verification.EVerificationState @@ -124,6 +127,16 @@ class SelfVerificationController @Inject constructor( val pendingRequest = state.pendingRequest.invoke() when (pendingRequest.state) { EVerificationState.WaitingForReady -> { + + genericFooterItem { + id("open_other") + style(ItemStyle.NORMAL_TEXT) + text( + host.stringProvider.getString(R.string.verification_request_was_sent).toEpoxyCharSequence() + ) + textColor(host.colorProvider.getColorFromAttribute(R.attr.vctr_content_primary)) + } + bottomSheetSelfWaitItem { id("waiting") }