mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Check if flags need updates
This commit is contained in:
parent
294d109ab1
commit
8833877881
1 changed files with 2 additions and 2 deletions
|
@ -1035,11 +1035,11 @@ class Core {
|
||||||
Message icopy = itarget.getMessageByUID(uid);
|
Message icopy = itarget.getMessageByUID(uid);
|
||||||
|
|
||||||
// Mark read
|
// Mark read
|
||||||
if (seen && flags.contains(Flags.Flag.SEEN))
|
if (seen && !icopy.isSet(Flags.Flag.SEEN) && flags.contains(Flags.Flag.SEEN))
|
||||||
icopy.setFlag(Flags.Flag.SEEN, true);
|
icopy.setFlag(Flags.Flag.SEEN, true);
|
||||||
|
|
||||||
// Remove star
|
// Remove star
|
||||||
if (unflag && flags.contains(Flags.Flag.FLAGGED))
|
if (unflag && icopy.isSet(Flags.Flag.FLAGGED) && flags.contains(Flags.Flag.FLAGGED))
|
||||||
icopy.setFlag(Flags.Flag.FLAGGED, false);
|
icopy.setFlag(Flags.Flag.FLAGGED, false);
|
||||||
|
|
||||||
// Set drafts flag
|
// Set drafts flag
|
||||||
|
|
Loading…
Reference in a new issue