mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -05:00
Delete the attachments from disk before we delete them from the database, so we know what to delete.
This commit is contained in:
parent
994ed6653c
commit
fe62812ff2
@ -4866,13 +4866,13 @@ public class LocalStore extends Store implements Serializable
|
||||
* We do this explicit deletion here because we're not deleting the record
|
||||
* in messages, which means our ON DELETE trigger for messages won't cascade
|
||||
*/
|
||||
((LocalFolder)mFolder).deleteAttachments(mId);
|
||||
mDb.execSQL("DELETE FROM attachments WHERE message_id = ?",
|
||||
new Object[]
|
||||
{
|
||||
mId
|
||||
});
|
||||
|
||||
((LocalFolder)mFolder).deleteAttachments(mId);
|
||||
((LocalFolder)mFolder).deleteHeaders(mId);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user