zulip/zerver/webhooks/sentry
Riken Shah a96c614420 message: Fix the edit topic bug by removing leading \n from msg content.
The reason for this bug is because of different striping
processes in the backend and frontend, i.e The frontend
checks if the message's `raw_content` has changed to
decide if the `content` of the message should be sent in
the request to the backend, or not. So, it removes the
leading new line ('\n') from the message `raw_content`
when checking it, which is causing the "Error saving edit:
You don't have permission to edit this message" error.

This commit fixes it by removing the leading new line
when cleaning message content.

The bug was explained by @punchagan and its solution
by @timabbott.
2021-07-06 09:41:54 -07:00
..
fixtures sentry: Do not assume context lines exist in stacktrace. 2021-03-22 12:16:10 -07:00
__init__.py
doc.md webhooks/sentry: Support integration configured as webhook. 2020-11-09 12:02:49 -08:00
tests.py message: Fix the edit topic bug by removing leading \n from msg content. 2021-07-06 09:41:54 -07:00
view.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00