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/apps/meteor/ee/client/lib/fetchFeatures.ts

9 lines
348 B

import { CachedCollectionManager } from '../../../app/ui-cached-collection/client';
import { sdk } from '../../../app/utils/client/lib/SDKClient';
export const fetchFeatures = (): Promise<string[]> =>
new Promise((resolve, reject) => {
CachedCollectionManager.onLogin(() => {
sdk.call('license:getModules').then(resolve, reject);
});
});