-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incoming session verification #3733
Conversation
.../io/element/android/features/verifysession/impl/incoming/IncomingVerificationStateMachine.kt
Outdated
Show resolved
Hide resolved
ebd865f
to
31f171f
Compare
adf4442
to
4ef231c
Compare
31f171f
to
e554f84
Compare
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Add more log to the state machines Ensure the block cannot be cancelled, else if the Rust SDK emit a new state during the API execution, the state machine may cancel the api call. Let VerificationFlowState values match the SDK api for code clarity. Rename sub interface for clarity. Migrate tests to the new FakeVerificationService.
7b65832
to
b8b3820
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, thanks! Just some minor naming remarks
|
||
package io.element.android.features.verifysession.impl.incoming | ||
|
||
fun interface IncomingVerificationNavigator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should find another name than Navigator, as onFinish
is not really a navigation event?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes... But it will lead to a navigation. Do you have a suggestion for better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On iOS they're using the Coordinator
name, but not sure it's better :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very iOS-y name, but it kind of works here.
...n/kotlin/io/element/android/features/verifysession/impl/incoming/IncomingVerificationView.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/io/element/android/features/verifysession/impl/incoming/ui/SessionDetailsView.kt
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Here is a quick demo of the feature:
IncomingVerification.mp4