Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wenslayer opened this issue Feb 22, 2018 · 0 comments

Comments

@wenslayer
Copy link

Hubot Script

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

Repro Case

  • Start Hubot
  • Hubot joins a flow that Joe is already a member of.
  • Joe issues a keyword that triggers a response; e.g.:

    Joe: hubot magicword
    Hubot: @Joe: open sesame!

  • Mary gets wind about all this cool stuff happening in this flow, and so joins it.
  • Mary tries the same thing:

    Mary: hubot magicword

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

  • Restart Hubot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant