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:
parent
bbffa8ed75
commit
2eaa99bb3a
@ -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);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user