feat(BRIDGE-348): display BYOE addresses in Bridge

This commit is contained in:
Atanas Janeshliev
2025-04-09 16:04:20 +02:00
parent 7831a98e6c
commit b37f2d138a
8 changed files with 126 additions and 16 deletions

View File

@ -739,7 +739,7 @@ func (user *User) protonAddresses() []proton.Address {
}
addresses := xslices.Filter(maps.Values(apiAddrs), func(addr proton.Address) bool {
return addr.Status == proton.AddressStatusEnabled && addr.Type != proton.AddressTypeExternal
return addr.Status == proton.AddressStatusEnabled && (addr.IsBYOEAddress() || addr.Type != proton.AddressTypeExternal)
})
slices.SortFunc(addresses, func(a, b proton.Address) bool {