mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 22:28:10 -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)
|
else if (flag == Flag.X_DESTROYED && set)
|
||||||
{
|
{
|
||||||
((LocalFolder) mFolder).deleteAttachments(getUid());
|
((LocalFolder) mFolder).deleteAttachments(mId);
|
||||||
mDb.execSQL("DELETE FROM messages WHERE id = ?",
|
mDb.execSQL("DELETE FROM messages WHERE id = ?", new Object[] { mId });
|
||||||
new Object[] { mId });
|
|
||||||
((LocalFolder)mFolder).deleteHeaders(mId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user