flowdock / hubot-flowdock

Flowdock adapter for Hubot chat bot
94 stars 60 forks source link

res.reply doesn't use user's display name if they joined flow after Hubot started #107

Open wenslayer opened 6 years ago

wenslayer commented 6 years ago

Hubot Script

robot.respond /magicword/, (res) ->
  res.reply 'open sesame!'

Repro Case

Expected result

Hubot: @Mary: open sesame!

Actual result

Hubot: @123456: open sesame!

  • The 123456 corresponds to the user's Flowdock user ID.
  • The @123456 doesn't resolve to an existing user and so Mary is not properly @-mentioned.

Workaround