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".
Have someone notify you with /shrug @yourname
, see the desktop notification.
I'd expect something like OtherUser wrote: ¯\_(ツ)_/¯
NOTE: Slash command refers to Mattermost slash commands: https://docs.mattermost.com/developer/slash-commands.html
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
Most helpful comment
I'll be fixing this soon as a part of something bigger... 👀