Skip to content
Snippets Groups Projects
Commit 8a5ac3f7 authored by Douglas Fabris's avatar Douglas Fabris Committed by Guilherme Gazzo
Browse files

chore!: Remove unused `omnichannelExternalFrameGenerateKey` (#32921)

parent c20e02d8
No related branches found
No related tags found
No related merge requests found
import type { ServerMethods } from '@rocket.chat/ddp-client';
import { Meteor } from 'meteor/meteor';
import { sdk } from '../../../utils/client/lib/SDKClient';
import { generateKey } from './crypto';
Meteor.methods<ServerMethods>({
async omnichannelExternalFrameGenerateKey() {
const key = await generateKey();
await sdk.call('saveSetting', 'Omnichannel_External_Frame_Encryption_JWK', key);
},
});
import './generateNewKey';
......@@ -2,4 +2,3 @@ import '../lib/messageTypes';
import './voip';
import './ui';
import './stylesheets/livechat.css';
import './externalFrame';
import type { ServerMethods } from '@rocket.chat/ddp-client';
import { Meteor } from 'meteor/meteor';
declare module '@rocket.chat/ddp-client' {
// eslint-disable-next-line @typescript-eslint/naming-convention
interface ServerMethods {
omnichannelExternalFrameGenerateKey(): unknown;
}
}
Meteor.methods<ServerMethods>({
// eslint-disable-next-line @typescript-eslint/no-empty-function
omnichannelExternalFrameGenerateKey() {
return {
message: 'Generating_key',
};
}, // only to prevent error when calling the client method
});
import './generateNewKey';
......@@ -74,5 +74,4 @@ import './lib/stream/agentStatus';
import './sendMessageBySMS';
import './api';
import './api/rest';
import './externalFrame';
import './methods/saveBusinessHour';
......@@ -852,14 +852,5 @@ await settingsRegistry.addGroup('SMS', async function () {
value: true,
},
});
await this.add('Omnichannel_External_Frame_GenerateKey', 'omnichannelExternalFrameGenerateKey', {
type: 'action',
actionText: 'Generate_new_key',
enableQuery: {
_id: 'Omnichannel_External_Frame_Enabled',
value: true,
},
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment