-
Notifications
You must be signed in to change notification settings - Fork 5
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
Don't shadow-replace Attachments with the 1st one when forwarding a Message #1923
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add like 2 lines to avoid doing the clear and the addAll if nothing change
If we forward a draft with a lot of attachment, that is a waste to clean the realm attachments, then add the same attachments back in realm
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageViewModel.kt
Outdated
Show resolved
Hide resolved
We are not sure the Attachments in the Edit : finally, we dit it. |
4c89a96
to
7853e21
Compare
app/src/main/java/com/infomaniak/mail/data/models/Attachment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageViewModel.kt
Outdated
Show resolved
Hide resolved
b2715b1
to
3149360
Compare
ee60cc1
to
7f0b61f
Compare
c190f4f
to
374ede4
Compare
7f0b61f
to
a82c705
Compare
This PR/issue depends on: |
…are in FORWARD mode and the Attachment's list hasn't be touched by the user
This reverts commit 7853e21.
Co-authored-by: Gibran Chevalley <32095402+LunarX@users.noreply.github.com>
…ta()` in its own boolean
a82c705
to
47c66fe
Compare
Quality Gate passedIssues Measures |
Depends on #1929
We've got an issue where, when forwarding an email, we replace all of its Attachments with the 1st one that we find.
It was caused by a wrong usage of
uploadLocalUri
, that we supposed couldn't benull
.The truth was that, when forwarding emails, Attachments don't have any
uploadLocalUri
.