forked from Silverfish/proton-bridge
fix(GODT-2328): Ignore labels that aren't part of user label set
This commit is contained in:
@ -5,6 +5,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
## [Bridge 3.0.13] Perth Narrows
|
## [Bridge 3.0.13] Perth Narrows
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
GODT-2328: Ignore labels that aren't part of user label set.
|
||||||
GODT-2326: Sync issue on missing fresh DB file.
|
GODT-2326: Sync issue on missing fresh DB file.
|
||||||
GODT-2319: Seed the math/rand RNG on app startup.
|
GODT-2319: Seed the math/rand RNG on app startup.
|
||||||
GODT-1804: Preserve MIME parameters when uploading attachments.
|
GODT-1804: Preserve MIME parameters when uploading attachments.
|
||||||
|
|||||||
@ -463,6 +463,11 @@ func wantLabel(label proton.Label) bool {
|
|||||||
|
|
||||||
func wantLabels(apiLabels map[string]proton.Label, labelIDs []string) []string {
|
func wantLabels(apiLabels map[string]proton.Label, labelIDs []string) []string {
|
||||||
return xslices.Filter(labelIDs, func(labelID string) bool {
|
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