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/cloud/server/functions/getWorkspaceKey.js

18 lines
429 B

import { retrieveRegistrationStatus } from './retrieveRegistrationStatus';
import { settings } from '../../../settings';
export function getWorkspaceKey() {
const { connectToCloud, workspaceRegistered } = retrieveRegistrationStatus();
if (!connectToCloud || !workspaceRegistered) {
return false;
}
const publicKey = settings.get('Cloud_Workspace_PublicKey');
if (!publicKey) {
return false;
}
return publicKey;
}