Fix integration tests - compiting message flags

This commit is contained in:
Michal Horejsek
2020-08-17 09:10:03 +02:00
parent 1dcaa200e0
commit 6c93f1f1ec
3 changed files with 24 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func GetFlags(m *pmapi.Message) (flags []string) {
}
func ParseFlags(m *pmapi.Message, flags []string) {
// Consider to use ComputeMessageFlagsByLabels to keep logic in one place.
if (m.Flags & pmapi.FlagSent) == 0 {
m.Flags |= pmapi.FlagReceived
}