Skip to content

Commit

Permalink
Merge pull request RocketChat#265 from assistify/hotfix/RocketChat#262-…
Browse files Browse the repository at this point in the history
…smarti-adapter-livechat

Fix Smarti-Adapter for livechats
  • Loading branch information
ThomasRoehl committed Mar 5, 2018
2 parents 8fb60b2 + ef9850e commit 566aa8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/assistify-ai/server/lib/SmartiAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class SmartiAdapter {
'channel_id': [message.rid]
},
'user': {
'id': room.u._id
'id': room.u ? room.u._id : room.v._id //different properties capture the owner in livechat- and other rooms
},
'messages': [requestBodyMessage],
'context': {
Expand Down

0 comments on commit 566aa8e

Please sign in to comment.