feat(GODT-2569): Add functional test to validate community PR.

This commit is contained in:
Romain LE JEUNE
2023-04-27 08:47:49 +02:00
committed by Romain Le Jeune
parent 7002806999
commit fbbd0245de
2 changed files with 127 additions and 6 deletions

View File

@ -327,14 +327,10 @@ func getParentID(
default:
// found multiple parents, search through metadata to try to find a singular parent that
// was sent by this account.
found_sent_by_us := false
for _, metadata := range metadata {
if metadata.Flags.Has(proton.MessageFlagSent) {
if found_sent_by_us == true {
parentID = ""
}
parentID = metadata.ID
found_sent_by_us = true
break
}
}
}