Mattermost-server: [Help Wanted] [MM-10406] Extra white space character will prevent slash commands from finding the user in the @mention

Created on 4 May 2018  路  3Comments  路  Source: mattermost/mattermost-server

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide, specifically for machine setup and for developer workflow.


Notes: Jira ticket

When using an @mention in a slash command, the user will not be found if I accidentally add a leading space in front of the @mention. The space character should be trimmed to prevent user error.

For example

/invite  @dylan.haussermann

will not find the user I am mentioning

Steps:

  • Open a channel
  • Note a user who is not currently a member
  • Attempt to invite the target user but, include an extra space charter between the slash command and the @mention - "/invite @dylan.haussermann"

Expected: Extra white space is trimmed
Actual: User I'm trying to invite is not found -"We couldn't find the user"

Easy TecReactJS

Most helpful comment

I can take a look at this!

All 3 comments

I can take a look at this!

@jasonblais I think this issue can be closed.

Was this page helpful?
0 / 5 - 0 ratings