1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Remove a call to deleteHeaders since headers are deleted implicitly by

an SQLite trigger.

Call our new variant of deleteAttachments() to avoid an extra lookup
This commit is contained in:
Jesse Vincent 2010-08-29 16:57:02 +00:00
parent 31613e15c7
commit 7300aca2b8

View File

@ -4779,10 +4779,8 @@ public class LocalStore extends Store implements Serializable
}
else if (flag == Flag.X_DESTROYED && set)
{
((LocalFolder) mFolder).deleteAttachments(getUid());
mDb.execSQL("DELETE FROM messages WHERE id = ?",
new Object[] { mId });
((LocalFolder)mFolder).deleteHeaders(mId);
((LocalFolder) mFolder).deleteAttachments(mId);
mDb.execSQL("DELETE FROM messages WHERE id = ?", new Object[] { mId });
}
/*