You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] I've searched for any related issues and avoided creating a duplicate issue.
Description
The robot.brain.users list contains elements that should contain a name and id, as the slack adapter does not override them the name always equals the id.
as seen in the constructor the id is set to the name(from the hubot source: user.coffee)
constructor: (@id, options = {}) ->
for k of (options or {})
@[k] = options[k]
@['name'] ||= @id.toString()
but as you can see, in the campfire.coffee adapter, also from the hubot source the name is overriden:
Description
The robot.brain.users list contains elements that should contain a name and id, as the slack adapter does not override them the name always equals the id.
as seen in the constructor the id is set to the name(from the hubot source: user.coffee)
but as you can see, in the campfire.coffee adapter, also from the hubot source the name is overriden:
The slack adapter lacks this functionality and therefore causes unnecessary headaches.
Reproducible in:
hubot-slack version: v4.0.2
Expected result:
robot.brain.users.[position].name should return the username
Actual result:
robot.brain.users.[position].name should return the id
The text was updated successfully, but these errors were encountered: