Mattermost-server: [Help Wanted] Desktop notifications for slash commands show escape characters

Created on 3 Jan 2017  Â·  8Comments  Â·  Source: mattermost/mattermost-server

Summary

Desktop notifications by browser or desktop app don't seem to properly unescape \\ and \_. Also, if the notification is triggered by a slash-command they pretend to originate from "webhook".

Steps to reproduce

Have someone notify you with /shrug @yourname, see the desktop notification.

Expected behavior

I'd expect something like OtherUser wrote: ¯\_(ツ)_/¯

Observed behavior

mm_noficiation

NOTE: Slash command refers to Mattermost slash commands: https://docs.mattermost.com/developer/slash-commands.html

Easy TecReactJS

Most helpful comment

I'll be fixing this soon as a part of something bigger... 👀

All 8 comments

Thanks for the report! Ticket created: https://mattermost.atlassian.net/browse/PLT-5126

Would anyone in the community be interested helping with a fix?

The username part of this ticket was fixed separately a while back, but the escape characters issue still needs fixing.

I can take this one! Should we only be accounting for the case where a /shrug command is entered? I don't believe many users will be sending \,\\,\\, etc. messages to one another so the way we escape the /shrug command might affect how these messages are received

@santos22 On Windows at least you can file paths that start with \ or \\ if the user truncates the beginning.

yepp, i also think that just handling /shrug is probably not cutting it...

I'll be fixing this soon as a part of something bigger... 👀

This is now working as expected. This may have been resolved as part of a different PR.

Can this PR be closed?

Thanks @DHaussermann! Closing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kkirsche picture kkirsche  Â·  37Comments

esethna picture esethna  Â·  29Comments

demedos picture demedos  Â·  37Comments

freswa picture freswa  Â·  34Comments

hjek picture hjek  Â·  31Comments