Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed May 18, 2021
1 parent e90ce2b commit 5d8c3f2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion app/api/server/v1/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ API.v1.addRoute('users.setPreferences', { authRequired: true }, {
sidebarViewMode: Match.Optional(String),
sidebarDisplayAvatar: Match.Optional(Boolean),
sidebarGroupByType: Match.Optional(Boolean),
// sidebarShowDiscussion: Match.Optional(Boolean),
muteFocusedConversations: Match.Optional(Boolean),
}),
});
Expand Down
8 changes: 0 additions & 8 deletions app/discussion/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ Meteor.startup(() => {
});
});

// settings.add('Accounts_Default_User_Preferences_sidebarShowDiscussion', true, {
// group: 'Accounts',
// section: 'Accounts_Default_User_Preferences',
// type: 'boolean',
// public: true,
// i18nLabel: 'Group_discussions',
// });

const globalQuery = {
_id: 'RetentionPolicy_Enabled',
value: true,
Expand Down
6 changes: 0 additions & 6 deletions app/ui-sidenav/client/roomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Template.roomList.helpers({
'settings.preferences.sidebarSortby': 1,
'settings.preferences.sidebarShowFavorites': 1,
'settings.preferences.sidebarShowUnread': 1,
// 'settings.preferences.sidebarShowDiscussion': 1,
'services.tokenpass': 1,
messageViewMode: 1,
},
Expand Down Expand Up @@ -79,11 +78,6 @@ Template.roomList.helpers({
query.tokens = { $exists: true };
}

// if we display discussions as a separate group, we should hide them from the other lists
// if (getUserPreference(user, 'sidebarShowDiscussion')) {
// query.prid = { $exists: false };
// }

if (getUserPreference(user, 'sidebarShowUnread')) {
query.$or = [
{ alert: { $ne: true } },
Expand Down
1 change: 0 additions & 1 deletion server/methods/saveUserPreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Meteor.methods({
sidebarViewMode: Match.Optional(String),
sidebarDisplayAvatar: Match.Optional(Boolean),
sidebarGroupByType: Match.Optional(Boolean),
// sidebarShowDiscussion: Match.Optional(Boolean),
muteFocusedConversations: Match.Optional(Boolean),
};
check(settings, Match.ObjectIncluding(keys));
Expand Down
1 change: 0 additions & 1 deletion tests/end-to-end/api/00-miscellaneous.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ describe('miscellaneous', function() {
'sidebarDisplayAvatar',
'sidebarGroupByType',
'muteFocusedConversations',
// 'sidebarShowDiscussion',
];

expect(res.body).to.have.property('success', true);
Expand Down

0 comments on commit 5d8c3f2

Please sign in to comment.