mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 17:16:46 +00:00
Fix integration tests - compiting message flags
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user