mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -05:00
Incorrect (and ancient code) would accidentally clobber the wrong attachment
(and only one, rather than all) when deleting a message.
This commit is contained in:
parent
483655fa20
commit
6caec1100c
@ -2267,7 +2267,7 @@ public class LocalStore extends Store implements Serializable
|
||||
/*
|
||||
* Delete all of the messages' attachments to save space.
|
||||
*/
|
||||
mDb.execSQL("DELETE FROM attachments WHERE id = ?",
|
||||
mDb.execSQL("DELETE FROM attachments WHERE message_id = ?",
|
||||
new Object[]
|
||||
{
|
||||
mId
|
||||
|
Loading…
Reference in New Issue
Block a user