Fix packaging errors and revert test code.

This commit is contained in:
Burak Kaan Köse
2026-04-10 14:50:53 +02:00
parent 2a0d15ad69
commit be71ef3611
3 changed files with 33 additions and 9 deletions
+23 -4
View File
@@ -468,14 +468,33 @@ public partial class MailListPageViewModel : MailBaseViewModel,
}
/// <summary>
/// Creates test notifications for the currently selected items.
/// Sends a new message to synchronize current folder.
/// </summary>
[RelayCommand]
private async Task SyncFolder()
private void SyncFolder()
{
if (!CanSynchronize || MailCollection.SelectedItemsCount == 0) return;
if (!CanSynchronize) return;
await _notificationBuilder.CreateNotificationsAsync(MailCollection.SelectedItems.Select(a => a.MailCopy));
// Only synchronize listed folders.
// When doing linked inbox sync, we need to save the sync id to report progress back only once.
// Otherwise, we will report progress for each folder and that's what we don't want.
trackingSynchronizationId = Guid.NewGuid();
completedTrackingSynchronizationCount = 0;
foreach (var folder in ActiveFolder.HandlingFolders)
{
var options = new MailSynchronizationOptions()
{
AccountId = folder.MailAccountId,
Type = MailSynchronizationType.CustomFolders,
SynchronizationFolderIds = [folder.Id],
GroupedSynchronizationTrackingId = trackingSynchronizationId
};
Messenger.Send(new NewMailSynchronizationRequested(options));
}
}
[RelayCommand]