fix(GODT-3001): Only create system labels during system label sync

This commit is contained in:
Leander Beernaert
2023-10-06 10:09:10 +01:00
committed by Jakub
parent ba65ffdbc7
commit cf9651bb94

View File

@ -119,6 +119,10 @@ func (s *SyncUpdateApplier) SyncSystemLabelsOnly(ctx context.Context, labels map
continue
}
if label.Type != proton.LabelTypeSystem {
continue
}
for _, c := range connectors {
update := newSystemMailboxCreatedUpdate(imap.MailboxID(label.ID), label.Name)
updates = append(updates, update)