From 32bf05cd8296af9ad33c4c7072f71c956fd6d15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20J=C3=A4gle?= Date: Tue, 13 Feb 2018 20:12:14 +0100 Subject: [PATCH] Fix closing user being transmitted in close by visitor --- packages/rocketchat-livechat/server/methods/closeByVisitor.js | 1 + 1 file changed, 1 insertion(+) 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 })