Les mentions d'utilisateurs ou de groupes avec des caractères spéciaux ne fonctionnent pas

The autocompletion trigger works, but the mention is sent as regular text, unclickable, and doesn’t trigger notifications.

Repro steps:

  1. Have a user/group with a special character (I only tried with accents though) in it.

  2. Mention it in the chat:
    image

  3. The mention is sent as regular text.
    image


Result with:

Username
Username with accent
Group
Group with accent

image

4 « J'aime »

I can replicate this:

  • Enable unicode usernames admin setting
  • Change default locale to Français
  • Go to /sidekiq and run Jobs::EnsureDbConsistency
  • Check @moderators is now @modérateurs
  • Enable mentions for the @modérateurs group

  • Open a Chat Channel and start typing @mod
  • Select @modérateurs when offered, and send
  • Mention appears as plain text and no notifications are sent:

image

4 « J'aime »

Thank you for reporting this! I’m adding this to our list to get it sorted out…

3 « J'aime »

Thanks for the report. I just merged a fix for this:

5 « J'aime »