diff --git a/packages/rocketchat-livechat/server/methods/closeByVisitor.js b/packages/rocketchat-livechat/server/methods/closeByVisitor.js index c6c54596c53d..2d4be66fff7a 100644 --- a/packages/rocketchat-livechat/server/methods/closeByVisitor.js +++ b/packages/rocketchat-livechat/server/methods/closeByVisitor.js @@ -13,6 +13,7 @@ Meteor.methods({ const language = (visitor && visitor.language) || RocketChat.settings.get('language') || 'en'; return RocketChat.Livechat.closeRoom({ + user: Meteor.user(), visitor, room, comment: TAPi18n.__('Closed_by_visitor', { lng: language })