Possibility to set room closer when closing LiveChat Rooms
cuonghuunguyen opened this issue · comments
Description
Currently, when closing LiveChat rooms, the App will always set the room closer to the visitor, this is not a correct behavior because this action is not performed by the visitor.
https://github.com/RocketChat/Rocket.Chat/blob/e851675577595eea0f54b511a20a0ed409c313f0/app/apps/server/bridges/livechat.js#L79
Possible approach
ILivechatUpdater.closeRoom()
should accept a closer: IUser
param to define which user performs this action. If it is not specified, set App user as the closer