Show all rooms of spaces in home by default

Change-Id: I59beb29283e90665a4128193edc407146ecf5672
This commit is contained in:
SpiritCroc 2021-10-30 14:07:51 +02:00
parent 998018032a
commit 9b88c608c2
2 changed files with 5 additions and 3 deletions

View file

@ -1167,8 +1167,10 @@ class VectorPreferences @Inject constructor(private val context: Context): Stati
fun prefSpacesShowAllRoomInHome(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME,
// migration of old property
!labsSpacesOnlyOrphansInHome())
true)
// migration of old property - leads to unexpected results, since we don't do the same in the xml
// - and who cares nowadays either way
//!labsSpacesOnlyOrphansInHome())
}
/*

View file

@ -119,7 +119,7 @@
<im.vector.app.core.preference.VectorPreferenceCategory android:title="@string/spaces">
<im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME"
android:title="@string/preference_show_all_rooms_in_home"
android:summary="@string/all_rooms_youre_in_will_be_shown_in_home" />