mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
fix(GODT-2805): Ignore Contact Group Labels
This commit is contained in:
@ -38,6 +38,10 @@ func (s *Service) HandleLabelEvents(ctx context.Context, events []proton.LabelEv
|
||||
for _, event := range events {
|
||||
switch event.Action {
|
||||
case proton.EventCreate:
|
||||
if !WantLabel(event.Label) {
|
||||
continue
|
||||
}
|
||||
|
||||
updates := onLabelCreated(ctx, s, event)
|
||||
|
||||
if err := waitOnIMAPUpdates(ctx, updates); err != nil {
|
||||
@ -45,6 +49,10 @@ func (s *Service) HandleLabelEvents(ctx context.Context, events []proton.LabelEv
|
||||
}
|
||||
|
||||
case proton.EventUpdateFlags, proton.EventUpdate:
|
||||
if !WantLabel(event.Label) {
|
||||
continue
|
||||
}
|
||||
|
||||
updates, err := onLabelUpdated(ctx, s, event)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to handle update label event: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user