Fixing double root folder creation.

This commit is contained in:
Burak Kaan Köse
2026-04-16 14:06:14 +02:00
parent e1f53c7f9f
commit 0b136b3d66
2 changed files with 111 additions and 3 deletions
+4 -3
View File
@@ -140,9 +140,10 @@ public abstract class WinoSynchronizer<TBaseRequest, TMessageType, TCalendarEven
PendingSynchronizationRequest.Add(options, newCancellationTokenSource);
activeSynchronizationCancellationToken = newCancellationTokenSource.Token;
// ImapSynchronizer will send this type when an Idle client receives a notification of changes.
// We should not execute requests in this case.
bool shouldExecuteRequests = options.Type != MailSynchronizationType.IMAPIdle;
// Only explicit ExecuteRequests runs are allowed to drain the queued request list.
// Other sync types (for example the follow-up FoldersOnly refresh after folder actions)
// may be queued alongside ExecuteRequests and must not replay the same operations.
bool shouldExecuteRequests = options.Type == MailSynchronizationType.ExecuteRequests;
bool shouldDelayExecution = false;
int maxExecutionDelay = 0;