Skip to content

Commit

Permalink
Update app/livechat/server/lib/Livechat.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Douglas Gubert <d-gubert@users.noreply.github.com>
  • Loading branch information
Shiqi Mei and d-gubert authored Apr 22, 2020
1 parent 6eb74f6 commit a44958f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/livechat/server/lib/Livechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ export const Livechat = {
Messages.createCommandWithRoomIdAndUser('promptTranscript', rid, closeData.closedBy);

Meteor.defer(() => {
/**
* @deprecated the `AppInterface.ILivechatRoomClosedHandler` event will be removed
* in the next major version of the Apps-Engine
*/
Apps.getBridges().getListenerBridge().livechatEvent(AppInterface.ILivechatRoomClosedHandler, room);
Apps.getBridges().getListenerBridge().livechatEvent(AppInterface.IPostLivechatRoomClosed, room);
callbacks.run('livechat.closeRoom', room);
});
Expand Down

0 comments on commit a44958f

Please sign in to comment.