Fixes #4981. Message flags should always be properly updated now using the message ID instead of the location table's row ID

This commit is contained in:
Nate Lillich 2012-04-17 10:29:41 -07:00
parent 223bb0df35
commit d61e1b1b1d

View file

@ -505,7 +505,7 @@ private class Geary.Sqlite.Folder : Object, Geary.ReferenceSemantics {
}
ImapMessagePropertiesRow? row = yield imap_message_properties_table.fetch_async(
transaction, location_row.id, cancellable);
transaction, location_row.message_id, cancellable);
if (row == null)
continue;
@ -534,7 +534,7 @@ private class Geary.Sqlite.Folder : Object, Geary.ReferenceSemantics {
Geary.Imap.MessageFlags flags = ((Geary.Imap.EmailFlags) map.get(id)).message_flags;
yield imap_message_properties_table.update_flags_async(transaction, location_row.id,
yield imap_message_properties_table.update_flags_async(transaction, location_row.message_id,
flags.serialize(), cancellable);
}