mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Store push state whether or not the messages arrived already deleted.
This commit is contained in:
parent
4f65b4270e
commit
ac14826485
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user