Skip to content

Commit a9bdbcf

Browse files
committed
Unsed experimental flag 'showOnlineUsers' removed
1 parent 7b43782 commit a9bdbcf

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

src/app/global/local_account_sensitive_settings.nim

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ const LSS_KEY_ENS_COMMUNITY_PERMISSIONS_ENABLED* = "ensCommunityPermissionsEnabl
1616
const DEFAULT_COMMUNITY_PERMISSIONS_ENABLED = false
1717
const LSS_KEY_IS_BROWSER_ENABLED* = "isExperimentalBrowserEnabled"
1818
let DEFAULT_IS_BROWSER_ENABLED = not TEST_MODE_ENABLED
19-
const LSS_KEY_SHOW_ONLINE_USERS* = "showOnlineUsers"
20-
const DEFAULT_SHOW_ONLINE_USERS = true
2119
const LSS_KEY_EXPAND_USERS_LIST* = "expandUsersList"
2220
const DEFAULT_EXPAND_USERS_LIST = true
2321
const DEFAULT_IS_MULTI_NETWORK_ENABLED = false
@@ -242,19 +240,6 @@ QtObject:
242240
write = setEnsCommunityPermissionsEnabled
243241
notify = ensCommunityPermissionsEnabledChanged
244242

245-
proc showOnlineUsersChanged*(self: LocalAccountSensitiveSettings) {.signal.}
246-
proc getShowOnlineUsers*(self: LocalAccountSensitiveSettings): bool {.slot.} =
247-
getSettingsProp[bool](self, LSS_KEY_SHOW_ONLINE_USERS, newQVariant(DEFAULT_SHOW_ONLINE_USERS))
248-
proc setShowOnlineUsers*(self: LocalAccountSensitiveSettings, value: bool) {.slot.} =
249-
setSettingsProp(self, LSS_KEY_SHOW_ONLINE_USERS, newQVariant(value)):
250-
self.showOnlineUsersChanged()
251-
252-
QtProperty[bool] showOnlineUsers:
253-
read = getShowOnlineUsers
254-
write = setShowOnlineUsers
255-
notify = showOnlineUsersChanged
256-
257-
258243
proc expandUsersListChanged*(self: LocalAccountSensitiveSettings) {.signal.}
259244
proc getExpandUsersList*(self: LocalAccountSensitiveSettings): bool {.slot.} =
260245
getSettingsProp[bool](self, LSS_KEY_EXPAND_USERS_LIST, newQVariant(DEFAULT_EXPAND_USERS_LIST))
@@ -615,7 +600,6 @@ QtObject:
615600
of LSS_KEY_NODE_MANAGEMENT_ENABLED: self.nodeManagementEnabledChanged()
616601
of LSS_KEY_ENS_COMMUNITY_PERMISSIONS_ENABLED: self.ensCommunityPermissionsEnabledChanged()
617602
of LSS_KEY_IS_BROWSER_ENABLED: self.isBrowserEnabledChanged()
618-
of LSS_KEY_SHOW_ONLINE_USERS: self.showOnlineUsersChanged()
619603
of LSS_KEY_EXPAND_USERS_LIST: self.expandUsersListChanged()
620604
of LSS_KEY_NEVER_ASK_ABOUT_UNFURLING_AGAIN: self.neverAskAboutUnfurlingAgainChanged()
621605
of LSS_KEY_HIDE_CHANNEL_SUGGESTIONS: self.hideChannelSuggestionsChanged()

ui/app/AppLayouts/Chat/views/ChatHeaderContentView.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ RowLayout {
102102
if(!chatContentModule)
103103
return false
104104

105-
return localAccountSensitiveSettings.showOnlineUsers &&
106-
chatContentModule.chatDetails.isUsersListAvailable
105+
return chatContentModule.chatDetails.isUsersListAvailable
107106
}
108107

109108
highlighted: root.showMembersButtonHighlighted

ui/app/AppLayouts/Chat/views/ChatView.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ StatusSectionLayout {
205205
}
206206

207207
if (root.rootStore.openCreateChat ||
208-
!localAccountSensitiveSettings.showOnlineUsers ||
209-
!localAccountSensitiveSettings.expandUsersList) {
208+
!localAccountSensitiveSettings.expandUsersList) {
210209
return false
211210
}
212211

ui/app/AppLayouts/Profile/stores/AdvancedStore.qml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ QtObject {
2828
readonly property string communities: "communities"
2929
readonly property string activityCenter: "activityCenter"
3030
readonly property string nodeManagement: "nodeManagement"
31-
readonly property string onlineUsers: "onlineUsers"
3231
readonly property string communitiesPortal: "communitiesPortal"
3332
readonly property string communityPermissions: "communityPermissions"
3433
readonly property string discordImportTool: "discordImportTool"
@@ -123,9 +122,6 @@ QtObject {
123122
else if (feature === experimentalFeatures.nodeManagement) {
124123
advancedModule.toggleNodeManagementSection()
125124
}
126-
else if (feature === experimentalFeatures.onlineUsers) {
127-
localAccountSensitiveSettings.showOnlineUsers = !localAccountSensitiveSettings.showOnlineUsers
128-
}
129125
}
130126

131127
function toggleArchiveProtocolEnabled() {

0 commit comments

Comments
 (0)