-
Notifications
You must be signed in to change notification settings - Fork 732
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
Fixes inconsistent rooms in home behaviour #6511
Conversation
…consistent value - only uses the previous value if the key exists, otherwise we end up defaulting to true instead of false (which the preferences screen expects) - manually deletes the key after migrating the value
} | ||
|
||
private fun labsSpacesOnlyOrphansInHome(): Boolean { | ||
return defaultPrefs.getBoolean(SETTINGS_LABS_SPACES_HOME_AS_ORPHAN, 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.
Do we have to live with this or can we remove this flag in the next releases?
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.
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 totally agree. They (if there are any users) shouldn't be so surprised.
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.
removed ♻️ 6266b20
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! Feel free to merge.
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! Just added a question.
Kudos, SonarCloud Quality Gate passed! |
Type of change
Content
SETTINGS_LABS_SPACES_HOME_AS_ORPHAN
migration for the showing rooms in home, it's the cause of a inconsistent stateMotivation and context
Fixes #6510 Inconsistent rooms in home behaviour
The app incorrectly returns the
Show all rooms in home
preference as enabled when it's meant to be disabled by default. This is caused by the migration logic from the previous flag not taking into account if the preference existed, causing us to always default to enabled.Will also fix some flakiness in the UI Tests!
Screenshots / GIFs
Tests
Tested devices