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:
parent
31613e15c7
commit
7300aca2b8
@ -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 });
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user