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
fix: disable removing non-permanent clients [WPB-5700] #2485
fix: disable removing non-permanent clients [WPB-5700] #2485
Conversation
Do we need it for RC ? |
APKs built during tests are available here. Scroll down to Artifacts! |
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.
Clean
device = Device(result.client), | ||
isCurrentDevice = result.isCurrentClient, | ||
removeDeviceDialogState = RemoveDeviceDialogState.Hidden | ||
removeDeviceDialogState = RemoveDeviceDialogState.Hidden, | ||
canBeRemoved = !result.isCurrentClient && isSelfClient && result.client.type == ClientType.Permanent, |
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 thinking out loud: in the future, it would be nice to have this in Kalium. So Kalium can expose a isRemovable
property for clients.
APKs built during tests are available here. Scroll down to Artifacts! |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 2123 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Currently, the user can remove clients of all types, even legal hold one.
Solutions
Disable the option to delete non-permanent clients.
Testing
Test Coverage (Optional)
How to Test
Have a user who has legal hold enabled, open "my devices" screen and click on "legal hold" device.
Attachments (Optional)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.