Skip to content

Commit 566aa8e

Browse files
authored
Merge pull request RocketChat#265 from assistify/hotfix/RocketChat#262-smarti-adapter-livechat
Fix Smarti-Adapter for livechats
2 parents 8fb60b2 + ef9850e commit 566aa8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/assistify-ai/server/lib/SmartiAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class SmartiAdapter {
103103
'channel_id': [message.rid]
104104
},
105105
'user': {
106-
'id': room.u._id
106+
'id': room.u ? room.u._id : room.v._id //different properties capture the owner in livechat- and other rooms
107107
},
108108
'messages': [requestBodyMessage],
109109
'context': {

0 commit comments

Comments
 (0)