-
Notifications
You must be signed in to change notification settings - Fork 868
[Session manager] Multi-session signout (PSG-857) #7456
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
Conversation
4c3ba34 to
0e66d13
Compare
0e66d13 to
ef8c0a5
Compare
Florian14
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.
Tested ok, code seems good.
Just a small thing, there is a lot of duplicated code between fragments and ViewModels, would it be possible to have a new ViewModel used by both fragments?
...x-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/tasks/DeleteDeviceTask.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt
Outdated
Show resolved
Hide resolved
Thanks for the review, yes I agree the duplicated code is annoying. I could not find a best way to solve this but I didn't think of having a dedicated |
ef8c0a5 to
1b940e8
Compare
1b940e8 to
45050e8
Compare
Eventually, I have reworked a little the use case into a single one for signout of sessions. See 6d26208. I haven't created a new |
|
SonarCloud Quality Gate failed. |
| } | ||
|
|
||
| deleteDevices(deviceIds, authInterceptor) | ||
| Timber.d("end execute") |
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.
Did you want to keep these logs?
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 indeed I wanted to keep these logs. Maybe I could have put the verbose tag instead.
Florian14
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.
Thanks for the update!








Type of change
Content
Adding capability to signout several sessions at once. On SDK side, adding new
delete_devicesendpoint.Motivation and context
Closes #7418
Screenshots / GIFs
Tests
Tested devices
Checklist