mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -05:00
More fix for issue 810: Delete intents are not also broadcasted when we delete a message because it was deleted on the server
This commit is contained in:
parent
dc2f752f11
commit
18ea30d00f
@ -1507,12 +1507,21 @@ public class MessagingController implements Runnable
|
||||
{
|
||||
Message localMessage = localFolder.getMessage(remoteMessage.getUid());
|
||||
boolean messageChanged = syncFlags(localMessage, remoteMessage);
|
||||
|
||||
if (messageChanged && isMessageSuppressed(account, folder, localMessage) == false)
|
||||
if (messageChanged)
|
||||
{
|
||||
for (MessagingListener l : getListeners())
|
||||
if (isMessageSuppressed(account, folder, localMessage) == false)
|
||||
{
|
||||
l.synchronizeMailboxAddOrUpdateMessage(account, folder, localMessage);
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.synchronizeMailboxAddOrUpdateMessage(account, folder, localMessage);
|
||||
}
|
||||
}
|
||||
if (localMessage.isSet(Flag.DELETED))
|
||||
{
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.synchronizeMailboxRemovedMessage(account, folder, localMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user