Skip to content
Snippets Groups Projects
Commit 4c21d933 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Closes #1703; Create direct rooms correctly in incoming hook

parent 261ff288
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ Api.addRoute ':integrationId/:userId/:token', authRequired: true, ...@@ -60,7 +60,7 @@ Api.addRoute ':integrationId/:userId/:token', authRequired: true,
if not room if not room
Meteor.runAsUser user._id, -> Meteor.runAsUser user._id, ->
Meteor.call 'createDirectMessage', roomUser._id Meteor.call 'createDirectMessage', roomUser.username
room = RocketChat.models.Rooms.findOne(rid) room = RocketChat.models.Rooms.findOne(rid)
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment