aboutsummaryrefslogtreecommitdiffstats
path: root/lib/format
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format')
-rw-r--r--lib/format/format.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/format/format.go b/lib/format/format.go
index 0d14cb19..42dd34a1 100644
--- a/lib/format/format.go
+++ b/lib/format/format.go
@@ -298,11 +298,12 @@ func ParseMessageFormat(format string, timeFmt string, thisDayTimeFmt string,
recent := false
answered := false
for _, flag := range ctx.MsgInfo.Flags {
- if flag == models.SeenFlag {
+ switch flag {
+ case models.SeenFlag:
seen = true
- } else if flag == models.RecentFlag {
+ case models.RecentFlag:
recent = true
- } else if flag == models.AnsweredFlag {
+ case models.AnsweredFlag:
answered = true
}
if flag == models.DeletedFlag {