Fix tests after rebase

This commit is contained in:
Michal Horejsek
2021-01-27 10:21:21 +01:00
parent 76dda10572
commit f4405b5186
3 changed files with 14 additions and 0 deletions

View File

@ -218,6 +218,11 @@ func (api *FakePMAPI) generateMessageFromImportRequest(msgReq *pmapi.ImportMsgRe
existingMsg := api.findMessage(m)
if existingMsg != nil {
for _, newLabelID := range api.generateLabelIDsFromImportRequest(msgReq) {
if !existingMsg.HasLabelID(newLabelID) {
existingMsg.LabelIDs = append(existingMsg.LabelIDs, newLabelID)
}
}
return existingMsg, nil
}