Skip to content

Commit 0fe2977

Browse files
chore!: remove ecdh (#37123)
Co-authored-by: Guilherme Gazzo <[email protected]>
1 parent 3777285 commit 0fe2977

File tree

24 files changed

+22
-546
lines changed

24 files changed

+22
-546
lines changed

.changeset/fair-dryers-behave.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rocket.chat/rest-typings': major
3+
'@rocket.chat/meteor': major
4+
---
5+
6+
Removes ecdh functionality and related settings

apps/meteor/.meteor/packages

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# 'meteor add' and 'meteor remove' will edit this file for you,
44
# but you can also edit it by hand.
55

6-
rocketchat:ddp
76
rocketchat:mongo-config
87
rocketchat:livechat
98
rocketchat:streamer

apps/meteor/.meteor/versions

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ [email protected]
7070
7171
7272
73-
7473
7574
7675

apps/meteor/app/api/server/default/info.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,3 @@ API.default.addRoute(
1212
},
1313
},
1414
);
15-
16-
API.default.addRoute(
17-
'ecdh_proxy/initEncryptedSession',
18-
{ authRequired: false },
19-
{
20-
post() {
21-
return {
22-
statusCode: 200,
23-
body: {
24-
success: false,
25-
error: 'Not Acceptable',
26-
},
27-
};
28-
},
29-
},
30-
);

apps/meteor/app/ecdh/Session.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

apps/meteor/app/ecdh/client/ClientSession.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

apps/meteor/app/ui-master/server/scripts.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ window.addEventListener('load', function() {
1616
1717
${process.env.DISABLE_ANIMATION ? 'window.DISABLE_ANIMATION = true;\n' : ''}
1818
19-
${settings.get('ECDH_Enabled') ? 'window.ECDH_Enabled = true;\n' : ''}
2019
// Custom_Script_Logged_Out
2120
window.addEventListener('Custom_Script_Logged_Out', function() {
2221
${settings.get('Custom_Script_Logged_Out')}
@@ -52,13 +51,7 @@ window.addEventListener('load', function() {
5251
}`;
5352

5453
settings.watchMultiple(
55-
[
56-
'Custom_Script_Logged_Out',
57-
'Custom_Script_Logged_In',
58-
'Custom_Script_On_Logout',
59-
'Accounts_ForgetUserSessionOnWindowClose',
60-
'ECDH_Enabled',
61-
],
54+
['Custom_Script_Logged_Out', 'Custom_Script_Logged_In', 'Custom_Script_On_Logout', 'Accounts_ForgetUserSessionOnWindowClose'],
6255
() => {
6356
const content = getContent();
6457
addScript('scripts', content);

apps/meteor/client/ecdh.ts

Lines changed: 0 additions & 78 deletions
This file was deleted.

apps/meteor/client/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import './meteor/startup';
33
import './serviceWorker';
44

55
import('./meteor/login')
6-
.then(() => import('./ecdh'))
76
.then(() => import('./importPackages'))
87
.then(() => import('./startup'))
98
.then(() =>

apps/meteor/definition/externals/global.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ declare global {
1919
lastMessageWindow?: Record<string, unknown>;
2020
lastMessageWindowHistory?: Record<string, unknown>;
2121
favico?: any;
22-
ECDH_Enabled?: boolean;
2322
__meteor_runtime_config__: {
2423
ROOT_URL_PATH_PREFIX: string;
2524
ROOT_URL: string;

0 commit comments

Comments
 (0)