-
Notifications
You must be signed in to change notification settings - Fork 855
[Device management] Verify another session (PSG-722) #7156
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
[Device management] Verify another session (PSG-722) #7156
Conversation
|
|
||
| sealed class SessionOverviewViewEvent : VectorViewEvents { | ||
| data class SelfVerification(val session: Session) : SessionOverviewViewEvent() | ||
| data class ShowVerifyCurrentSession(val session: Session) : SessionOverviewViewEvent() |
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.
Just a small remark: please remove the session class member.
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 thanks, I removed the argument.
d578dbe to
4f3df2c
Compare
6c8cd04 to
ef34f69
Compare
fedrunov
left a comment
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.
LGTM
bmarty
left a comment
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.
LGTM, thanks!
| updateEntryDetails(state.deviceId) | ||
| if (state.deviceInfo is Success) { | ||
| renderSessionInfo(state.isCurrentSession, state.deviceInfo.invoke()) | ||
| renderSessionInfo(state.isCurrentSession, state.deviceInfo.invoke(), state.isCurrentSessionTrusted) |
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.
Nit: Maybe passing the state as a single argument could be simpler, but maybe not, because of the type check of state.deviceInfo
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.
I moved all the logic into a updateSessionInfo() method. See f54955d
bmarty
left a comment
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.
One tiny last remark that you could simply ignore, else LGTM!
| ) | ||
| views.sessionOverviewInfo.render(infoViewState, dateFormatter, drawableProvider, colorProvider) | ||
| } else { | ||
| hideSessionInfo() |
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.
For clarity/parity, I would then remove fun hideSessionInfo() and just write:
| hideSessionInfo() | |
| views.sessionOverviewInfo.isVisible = false |
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.
I will make this change in a following PR.
4f3df2c to
963c5f8
Compare
f54955d to
2eb0391
Compare
|
SonarCloud Quality Gate failed. |
2eb0391 to
943ec7e
Compare
963c5f8 to
54a4dc7
Compare








Type of change
Content
Handling click on the "Verify" button in the session overview screen for other session than the current one.
Motivation and context
Closes #7143
Screenshots / GIFs
No UI changed.
Tests
Tested devices
Checklist