FlowCrypt / flowcrypt-browser

FlowCrypt Browser extension for Chrome and Firefox
https://flowcrypt.com
Other
372 stars 48 forks source link

#5599 Add checks if rich-text option is enabled before removing support #5729

Closed martgil closed 1 month ago

martgil commented 1 month ago

This PR adds check ensuring that rich-text is enable before ever removing rich text formatting. This solves the issue of having a prepended newlines when typing, for example, "HelloEnterWorld" where it produces

World
Hello

in the contenteditable.div in the master branch.

To test this manually:

1.) Open Gmail with FlowCrypt browser extension installed and configured. 2.) Send you're self a signed message email. 3.) Reply to your own signed message email. (The bug appears at this point on "master" branch but not here.) 4.) Type "HelloEnterWorld" and it will produce output on contenteditable.div correctly with:

Hello
World

instead of the bugged version:

World
Hello

close #5599


Tests (delete all except exactly one):


To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

martgil commented 1 month ago

Hello @sosnovsky - may I hear your feedback regarding this whenever your are available. Once confirmed that this looks good to you, I'll be sharing a custom build to the reporting users for them to see it working on their side before we can merge this. Thanks!

sosnovsky commented 1 month ago

Hi @martgil - I tried to reproduce mentioned bug on master build, but everything worked well for me. Maybe you can share video of this issue by email? You can also share this build with reporting users, to check if provided fix works for them.

martgil commented 1 month ago

Yes, Roma - I just sent a screencast over secure email. Thanks!

martgil commented 1 month ago

I will also create a custom build now and share to the reporting users.