-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer: text looses formatting after editing a markdown message or editing a reply message #8602
Comments
@julioromano why did you add the tags a-rich-text-editor and o-uncommon? I haven't used the rich text editor but the "old"/ current one. And I believe editing messages isn't an unexpected workflow - or did I get the tag descriptions wrong? Anyway, I somehow figured out where the problem might be (Haven't worked in big projects yet and I'm not good in Kotlin). I'm sure, Yoan has thought anything when implementing those lines: When I commented out the lines the app behaved as I expected but I haven't tested it very well so other functionality may be broken. So what should I do? Should I revert the lines and get the 'ugly' but efficient (and especially correct) markdown formatting back or leave it as it is and fix the problem elsewhere? (idk, maybe the class which receives the text after editing) |
My fault. I know the difference between the composer and rich text editor now. |
Apologies. I set the correct tag now. Occurrence is uncommon because most users don't write markdown so won't come across this behavior. |
what? and you are telling me most users dont reply to messages and editing the replies afterwards?! (yes, theyre affected too. see the 2nd screenshot) the whole composer is fucked up because of #8377 FOR MONTHS which was implemented without any QA or else! (and because of other minor markdown bugs like escaping, lists, etc. but i dont care about them since theyre not too annoying) tags are still wrong btw. please remove the a-markdown tag and add the a-composer |
Thanks for the additional explanations, tags should be ok now. |
uhm... serious question... are you trolling me?
|
No trolls here. Thanks, I'll bring that PR up to the team's attention. |
well, it just looked like… anyway, thanks a lot. |
What did the team say? I've thought someone was assigned to the PR, but he wasn't. The longer we're waiting the more difficult it may become to merge... |
Hello, |
That's great since it isn't a big change and shouldn't take too much time to verify - I believe It's rather meant as a hot fix. No offense, but the whole composer/ message rendering would need a redesign because there are some bugs (e.g. the Markdown rendering is different compared to the element-desktop/ -web clients). Anyway, thank you for pushing the PR. |
Steps to reproduce
wrong formatting when editing a message:
enable markdown messages
send any message, e.g.
the message is sent correctly
edit the message - the message is rendered in the composer like in the chat (with big header and a cite) but the formatting marks are missing.
in my case i just added a
/n/n´bar´
(i was not able to break/ exit the comment either)submit message
the new edited message is (without the cite):
if you add the formatting marks manually before submitting the edit, the message is sent correctly.
duplicate
in reply to …
:when replying to any message and editing the reply the same bug occures:
there might be much more bugs when editing messages i haven't found.
Outcome
What did you expect?
the message is rendered correctly
What happened instead?
i believe the problem is that the rendered message text is put into the composer instead of the raw message text so all formatting of the message gets lost when editing
Your phone model
OnePlus 5T
Operating system version
Android 10
Application version and app store
Element version v1.6.5 from Google Play
Homeserver
Synapse v1.89.0
Will you send logs?
No
Are you willing to provide a PR?
No
The text was updated successfully, but these errors were encountered: