The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/discussion/server/config.ts

37 lines
1007 B

import { settingsRegistry } from '../../settings/server';
settingsRegistry.addGroup('Discussion', function () {
// the channel for which discussions are created if none is explicitly chosen
this.add('Discussion_enabled', true, {
group: 'Discussion',
i18nLabel: 'Enable',
type: 'boolean',
public: true,
});
});
const globalQuery = {
_id: 'RetentionPolicy_Enabled',
value: true,
};
settingsRegistry.add('RetentionPolicy_DoNotPruneDiscussion', true, {
group: 'RetentionPolicy',
section: 'Global Policy',
type: 'boolean',
public: true,
i18nLabel: 'RetentionPolicy_DoNotPruneDiscussion',
i18nDescription: 'RetentionPolicy_DoNotPruneDiscussion_Description',
enableQuery: globalQuery,
});
settingsRegistry.add('RetentionPolicy_DoNotPruneThreads', true, {
group: 'RetentionPolicy',
section: 'Global Policy',
type: 'boolean',
public: true,
i18nLabel: 'RetentionPolicy_DoNotPruneThreads',
i18nDescription: 'RetentionPolicy_DoNotPruneThreads_Description',
enableQuery: globalQuery,
});