From e7149c4d23e18ce1f2019dc8b614963ba3ef0cec Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Tue, 27 Sep 2022 10:57:01 +0200 Subject: [PATCH] fix: Fix incorrect flag check --- internal/state/actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/state/actions.go b/internal/state/actions.go index 78c2384e..241da866 100644 --- a/internal/state/actions.go +++ b/internal/state/actions.go @@ -402,7 +402,7 @@ func (state *State) actionRemoveMessageFlags( } func (state *State) actionSetMessageFlags(ctx context.Context, tx *ent.Tx, messages []snapMsgWithSeq, setFlags imap.FlagSet) error { - if setFlags.ContainsUnchecked(imap.FlagSeenLowerCase) { + if setFlags.ContainsUnchecked(imap.FlagRecentLowerCase) { return fmt.Errorf("recent flag is read-only") }