aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/msgstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index d2851db2..38fa82e6 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -269,8 +269,8 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
store.Unlock()
store.fetchFlags()
}
- seen := msg.Info.Flags.Has(models.RecentFlag)
- recent := msg.Info.Flags.Has(models.SeenFlag)
+ seen := msg.Info.Flags.Has(models.SeenFlag)
+ recent := msg.Info.Flags.Has(models.RecentFlag)
if !seen && recent {
store.triggerNewEmail(msg.Info)
}