1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

Store push state whether or not the messages arrived already deleted.

This commit is contained in:
Daniel Applebaum 2010-01-23 17:54:11 +00:00
parent 4f65b4270e
commit ac14826485

View File

@ -1281,6 +1281,11 @@ public class MessagingController implements Runnable
{
try
{
String newPushState = remoteFolder.getNewPushState(localFolder.getPushState(), message);
if (newPushState != null)
{
localFolder.setPushState(newPushState);
}
if (message.isSet(Flag.DELETED))
{
if (K9.DEBUG)
@ -1303,11 +1308,7 @@ public class MessagingController implements Runnable
{
smallMessages.add(message);
}
String newPushState = remoteFolder.getNewPushState(localFolder.getPushState(), message);
if (newPushState != null)
{
localFolder.setPushState(newPushState);
}
// And include it in the view
if (message.getSubject() != null &&
message.getFrom() != null)