Skip to content

Commit a5bf25f

Browse files
authored
Merge pull request #6511 from vector-im/feature/rooms-in-space-default
Fixes inconsistent rooms in home behaviour
2 parents 7ab7d7c + 6266b20 commit a5bf25f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

changelog.d/6510.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes inconsistency with rooms within spaces showing or disappearing from home

vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ class VectorPreferences @Inject constructor(
158158
private const val SETTINGS_ENABLE_SEND_VOICE_FEATURE_PREFERENCE_KEY = "SETTINGS_ENABLE_SEND_VOICE_FEATURE_PREFERENCE_KEY"
159159

160160
const val SETTINGS_LABS_ALLOW_EXTENDED_LOGS = "SETTINGS_LABS_ALLOW_EXTENDED_LOGS"
161-
const val SETTINGS_LABS_SPACES_HOME_AS_ORPHAN = "SETTINGS_LABS_SPACES_HOME_AS_ORPHAN"
162161
const val SETTINGS_LABS_AUTO_REPORT_UISI = "SETTINGS_LABS_AUTO_REPORT_UISI"
163162
const val SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME = "SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME"
164163

@@ -1020,20 +1019,12 @@ class VectorPreferences @Inject constructor(
10201019
}
10211020
}
10221021

1023-
private fun labsSpacesOnlyOrphansInHome(): Boolean {
1024-
return defaultPrefs.getBoolean(SETTINGS_LABS_SPACES_HOME_AS_ORPHAN, false)
1025-
}
1026-
10271022
fun labsAutoReportUISI(): Boolean {
10281023
return defaultPrefs.getBoolean(SETTINGS_LABS_AUTO_REPORT_UISI, false)
10291024
}
10301025

10311026
fun prefSpacesShowAllRoomInHome(): Boolean {
1032-
return defaultPrefs.getBoolean(
1033-
SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME,
1034-
// migration of old property
1035-
!labsSpacesOnlyOrphansInHome()
1036-
)
1027+
return defaultPrefs.getBoolean(SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME, false)
10371028
}
10381029

10391030
/*

0 commit comments

Comments
 (0)