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
parent b7ef6e1486
commit e7423a9519
1 changed files with 4 additions and 0 deletions

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)