Commit 4575f68a authored by Michael Gratton's avatar Michael Gratton 🤞 Committed by Michael Gratton

Ensure ImapDb.Folder.set_email_flag_async also works on deleted email

Even deleted email can have its flag updated, e.g. if undeleted from
another client. Especially important now we are observing the \Deleted
flag from the server.
parent fa48f989
...@@ -1712,7 +1712,11 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics { ...@@ -1712,7 +1712,11 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics {
foreach (ImapDB.EmailIdentifier id in map.keys) { foreach (ImapDB.EmailIdentifier id in map.keys) {
LocationIdentifier? location = do_get_location_for_id( LocationIdentifier? location = do_get_location_for_id(
cx, id, ListFlags.NONE, cancellable cx,
// Could be setting a flag on a deleted message
); );
if (location == null) { if (location == null) {
throw new EngineError.NOT_FOUND( throw new EngineError.NOT_FOUND(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment