Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVE] Do not re-create General room on every server start #22957

Merged
merged 10 commits into from
Sep 16, 2021
2 changes: 1 addition & 1 deletion server/startup/initialData.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { checkUsernameAvailability, addUserToDefaultChannels } from '../../app/l

Meteor.startup(function() {
Meteor.defer(() => {
if (!Rooms.findOneById('GENERAL')) {
if (settings.get('Show_Setup_Wizard') === 'pending' && !Rooms.findOneById('GENERAL')) {
Rooms.createWithIdTypeAndName('GENERAL', 'c', 'general', {
default: true,
});
Expand Down