Check for removed message

pull/125/head
M66B 6 years ago
parent 66ce3939c3
commit 5c2bcaf43b

@ -1364,11 +1364,11 @@ public class ServiceSynchronize extends LifecycleService {
if (imessage.isExpunged()) { if (imessage.isExpunged()) {
Log.i(Helper.TAG, folder.name + " expunged uid=" + uid); Log.i(Helper.TAG, folder.name + " expunged uid=" + uid);
return null; throw new MessageRemovedException();
} }
if (imessage.isSet(Flags.Flag.DELETED)) { if (imessage.isSet(Flags.Flag.DELETED)) {
Log.i(Helper.TAG, folder.name + " deleted uid=" + uid); Log.i(Helper.TAG, folder.name + " deleted uid=" + uid);
return null; throw new MessageRemovedException();
} }
MessageHelper helper = new MessageHelper(imessage); MessageHelper helper = new MessageHelper(imessage);

Loading…
Cancel
Save