-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0774e3f
commit acc9bd5
Showing
5 changed files
with
27 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,10 @@ | ||
import { Meteor } from 'meteor/meteor'; | ||
// import { Users } from '@rocket.chat/models'; | ||
|
||
import { onLicense } from '../../app/license/server'; | ||
import { addSettings } from '../settings/outlookCalendar'; | ||
// import { settings } from '../../../app/settings/server'; | ||
// import { VirtualDataConverter } from '../../../app/importer/server/classes/VirtualDataConverter'; | ||
|
||
// async function maybeCreateOutlookBot() { | ||
// // Create the outlook bot if it doesn't exist. | ||
// const botUser = await Users.findOneById('outlook-calendar.bot'); | ||
// if (!botUser) { | ||
// VirtualDataConverter.convertSingleUser({ | ||
// _id: 'outlook-calendar.bot', | ||
// username: 'outlook-calendar.bot', | ||
// emails: [], | ||
// importIds: ['outlook-calendar.bot'], | ||
// name: 'Outlook Calendar', | ||
// type: 'bot', | ||
// roles: ['bot'], | ||
// }); | ||
// } | ||
// } | ||
|
||
Meteor.startup(() => | ||
onLicense('outlook-calendar', () => { | ||
// addSettings(); | ||
|
||
// settings.watch('Outlook_Calendar_Enabled', (value) => { | ||
// if (value) { | ||
// maybeCreateOutlookBot(); | ||
// } | ||
// }); | ||
addSettings(); | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters