Repository navigation
Conversation
sendMail leaves the message in Drafts until transport moves it to Sent Items under a new id, so listing Drafts straight after a send could cache it there. The conversation on screen then folded it in and asked for its body by an id already gone, and Graph answered 404. The dropped draft is already out of the cache, so Drafts is now shown from it.
Owner
|
Thanks for the fix, this will be merged on the next beta build |
Owner
|
Agentic reply: The beta build is in the repo now. If you already have the beta installed, flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakrefRPM, Debian and AppImage betas: Beta channel. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #538. I could not reproduce this against a Microsoft account, so this is from reading the code and Microsoft's documentation; the log you asked for would confirm it.
The error text is
Could not load message: …(the Italian msgid), which only comes from a body fetch, not the send:sendMailsucceeds, which is why the mail arrives. Per Microsoft's send mail process,sendMailfirst creates the message in Drafts and transport moves it to Sent Items later, and without immutable ids its id changes on that move.on_senddropped that draft and then listed Drafts from the server. That listing can catch the just-sent message still in Drafts and cache it under its Drafts id; a large message with inline images stays there longer.Microsoft Graph returned 404: The specified object was not found in the store.The fix lists Drafts from the cache after dropping the origin;
graph_drop_draft_originalready removes the old draft's row, so the list still loses it. Switching toPrefer: IdType="ImmutableId"would also fix it, but every cached uid is a hash of the Graph id, so that is a larger change.A rarer path remains (an autosave still in flight at Send, or the user opening Drafts in that window); closing it needs a choice between remembering just-sent Message-IDs or treating a 404 body fetch as gone.
Checked:
worker::graphtests pass and the app builds; the loopback Graph fake cannot driveon_send(it posts to the fixedGRAPH_BASE), so there is no new test.