1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-12 06:08:25 -05:00

Comments to better explain what's really going on on delete of messages

This commit is contained in:
Jesse Vincent 2010-08-29 16:57:31 +00:00
parent a5b7aa97dd
commit 6d38c1c71a

View File

@ -4773,6 +4773,12 @@ public class LocalStore extends Store implements Serializable
@Override
public void setFlag(Flag flag, boolean set) throws MessagingException
{
/*
* If a message is being marked as deleted we want to clear out it's content
* and attachments as well. Delete will not actually remove the row since we need
* to retain the uid for synchronization purposes.
*/
if (flag == Flag.DELETED && set)
{
delete();