Skip to content

Commit

Permalink
fix: Fix incorrect flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
LBeernaertProton committed Sep 27, 2022
1 parent 7512cd2 commit e7149c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/state/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit e7149c4

Please sign in to comment.