Skip to content

Commit dd959e2

Browse files
chore!: remove livechat:setUpConnection method (#37397)
1 parent bcb52c2 commit dd959e2

File tree

4 files changed

+5
-59
lines changed

4 files changed

+5
-59
lines changed

.changeset/ninety-hats-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': major
3+
---
4+
5+
Removes deprecated `livechat:setUpConnection` method

apps/meteor/app/livechat/server/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import './methods/saveCustomField';
1818
import './methods/saveDepartment';
1919
import './methods/sendMessageLivechat';
2020
import './methods/sendFileLivechatMessage';
21-
import './methods/setUpConnection';
2221
import './methods/takeInquiry';
2322
import './methods/sendTranscript';
2423
import './lib/QueueManager';

apps/meteor/app/livechat/server/methods/setUpConnection.ts

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

ee/apps/ddp-streamer/src/configureServer.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,4 @@ server.methods({
137137
}
138138
return Presence.setStatus(userId, status, statusText);
139139
},
140-
// Copied from /app/livechat/server/methods/setUpConnection.js
141-
'livechat:setUpConnection'(data = {}) {
142-
console.warn('Warning: Method livechat:setUpConnection is deprecated and will be removed on v8.0.0');
143-
const { token } = data;
144-
145-
if (typeof token !== 'string') {
146-
return new Error('Token must be string');
147-
}
148-
149-
if (!this.connection.livechatToken) {
150-
this.connection.livechatToken = token;
151-
this.connection.onClose(async () => {
152-
await MeteorService.notifyGuestStatusChanged(token, 'offline');
153-
});
154-
}
155-
},
156140
});

0 commit comments

Comments
 (0)