mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
fix(GODT-2328): Ignore labels that aren't part of user label set
This commit is contained in:
@ -728,7 +728,12 @@ func wantLabel(label proton.Label) bool {
|
||||
|
||||
func wantLabels(apiLabels map[string]proton.Label, labelIDs []string) []string {
|
||||
return xslices.Filter(labelIDs, func(labelID string) bool {
|
||||
return wantLabel(apiLabels[labelID])
|
||||
apiLabel, ok := apiLabels[labelID]
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
|
||||
return wantLabel(apiLabel)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user