diff --git a/.gitignore b/.gitignore index d34f55ce7ce6..7f1c9e173fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -73,4 +73,4 @@ pm2.json settings.json build.sh /public/livechat -.screenshots +.screenshots \ No newline at end of file diff --git a/packages/assistify-help-request/server/api.js b/packages/assistify-help-request/server/api.js index 324442642b5c..098bbe2e9228 100755 --- a/packages/assistify-help-request/server/api.js +++ b/packages/assistify-help-request/server/api.js @@ -39,6 +39,7 @@ export class HelpRequestApi { return new HelpDiscussionCreatedResponse( HelpRequestApi.getUrlForRoom(creationResult.room), + creationResult.room, creationResult.members ); } @@ -129,7 +130,7 @@ export class HelpRequestApi { let channel = {}; try { Meteor.runAsUser(seekerUser._id, () => { - channel = Meteor.call('createRequest', `Assistify_${ HelpRequestApi.getNextAssistifyRoomCode() }`, '', providerUsers.map((user) => user.username), environment); + channel = Meteor.call('createRequest', `Assistify_${ HelpRequestApi.getNextAssistifyRoomCode() }`, '', '', providerUsers.map((user) => user.username), environment); try { if (message) { RocketChat.sendMessage({ diff --git a/packages/assistify-help-request/server/types.js b/packages/assistify-help-request/server/types.js index c91393be6c9c..38926d78a923 100755 --- a/packages/assistify-help-request/server/types.js +++ b/packages/assistify-help-request/server/types.js @@ -1,8 +1,9 @@ // Definition of value objects. No clue why export interface is not supported export class HelpDiscussionCreatedResponse { - constructor(url, members) { + constructor(url, room, members) { this.success = true; this.url = url; + this.room = {'_id': room._id, 'name': room.name, 't': room.t, 'expertise': room.expertise, 'topic': room.topic, 'helpRequestId': room.helpRequestId}; this.members = members; } }