1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Do not delete remote messages during sync. Trust the delete routines

to send the proper delete requests (delete, mark read, nothing).
Otherwise, this code will delete on the server any message deleted on
the handset, no matter option the user selects.
This commit is contained in:
Daniel Applebaum 2009-01-07 06:36:46 +00:00
parent bbffa8ed75
commit 2eaa99bb3a

View File

@ -632,14 +632,14 @@ public class MessagingController implements Runnable {
/*
* Trash any remote messages that are marked as trashed locally.
*/
for (Message message : localMessages) {
Message remoteMessage = remoteUidMap.get(message.getUid());
// skip things deleted on the server side
if (remoteMessage != null && message.isSet(Flag.DELETED)) {
remoteMessage.setFlag(Flag.DELETED, true);
}
}
// for (Message message : localMessages) {
// Message remoteMessage = remoteUidMap.get(message.getUid());
// // skip things deleted on the server side
// if (remoteMessage != null && message.isSet(Flag.DELETED)) {
// remoteMessage.setFlag(Flag.DELETED, true);
// }
//
// }
/*