mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
Fix tests after rebase
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user