Skip to content

Edited messages don't process nor preserve escape sequences #9984

Closed
matrix-org/matrix-react-sdk
#8004
@anoadragon453

Description

@anoadragon453

Description

If you create a message with escape sequences and then try to edit it, you do not see the same source as written previously. Specifically escaped characters seem to not be converted back into their \ + character form. Additionally, writing the original message in the edit does not turn escape sequences back into their escaped form.

Steps to reproduce

Write a message with an escape sequence (useful when telling someone how to write code in formatted code blocks):

image

Send message, and see the character has been escaped:

image

Editing the message shows no backslash:

image

Correct it to the escape sequence again in the edit box:

image

The result is an unescaped sequence:

image

Log: not sent

Version information

  • Platform: web
  • Browser: Chrome
  • OS: Debian Stretch
  • URL: riot.im/develop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions