Skip to content

Commit 0453c8e

Browse files
Ari Pollaktimabbott
authored andcommitted
Fix user brain getting overwritten
* This works around hubotio/hubot#670 * hubot's userForId checks if the current room is different than the one that was last recorded for the user; if it's different, it overwrites the entire record for that user.
1 parent 5016bf9 commit 0453c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Zulip extends Adapter
6565
author = @robot.brain.userForId msg.sender_email,
6666
name: msg.sender_full_name
6767
email_address: msg.sender_email
68-
room: room
68+
author.room = room
6969

7070
content = msg.content.replace(@mention_regex, '@$1')
7171
console.log(@mention_regex, content)

0 commit comments

Comments
 (0)