FlowCrypt / flowcrypt-browser

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

Discus draft template #4691

Open DenBond7 opened 2 years ago

DenBond7 commented 2 years ago

As I can see, we use some markers for FlowCrypt drafts. I mean flowcrypt:link:draft_compose: On Android, it produces additional actions and makes code less readable and some approach oriented.

The problem is that Android covers more cases than the web app. The web app just covers encrypted drafts for Gmail and that's all. But Android should cover regular and encrypted drafts for Gmail as the first step, and regular and encrypted drafts for other providers as the second step.

Could we reject any additional text from a draft and leave just the original text?

I mean instead of have the following text

[flowcrypt:link:draft_compose:r-890113946946139958]

-----BEGIN PGP MESSAGE-----
Version: FlowCrypt Email Encryption 8.3.5
Comment: Seamlessly send and receive encrypted email

wV4DE4nP38Il0h4SAQdAqzEPF9DKefDiFW53Jzg8fSA1EmmkI/DVaBozVjIy
RjMwtTTM1YkINVRs9cDAIiEHK6mIeJm6enQDzOjjHRrfnDVK6aeTwU5XSaZ/
UlVv+NoE0mMBjweqGq7ITRtY+wQfBwmykf4Wyh0srdAQXK/hO7oBJQptH32T
n8TuYGFa89vYcE3Juq+ppM5khABDVbql2Rsja+ikfdTGKgliOOffJUZOFqc4
gw0WNfIWE0XBiY//8wNH1Qc=
=REhu
-----END PGP MESSAGE-----

have just the next one

-----BEGIN PGP MESSAGE-----
Version: FlowCrypt Email Encryption 8.3.5
Comment: Seamlessly send and receive encrypted email

wV4DE4nP38Il0h4SAQdAqzEPF9DKefDiFW53Jzg8fSA1EmmkI/DVaBozVjIy
RjMwtTTM1YkINVRs9cDAIiEHK6mIeJm6enQDzOjjHRrfnDVK6aeTwU5XSaZ/
UlVv+NoE0mMBjweqGq7ITRtY+wQfBwmykf4Wyh0srdAQXK/hO7oBJQptH32T
n8TuYGFa89vYcE3Juq+ppM5khABDVbql2Rsja+ikfdTGKgliOOffJUZOFqc4
gw0WNfIWE0XBiY//8wNH1Qc=
=REhu
-----END PGP MESSAGE-----

I understand that you need to have draftId somewhere but maybe we can store it in another place or fetch it dynamically.

tomholub commented 2 years ago

Yes, you don't have to replicate these draft id tags on Android. You can do without, and later we will figure out how to update browser extension to work nicely together.