diff --git a/Wino.Mail.ViewModels/ComposePageViewModel.cs b/Wino.Mail.ViewModels/ComposePageViewModel.cs index 702ef338..13643abf 100644 --- a/Wino.Mail.ViewModels/ComposePageViewModel.cs +++ b/Wino.Mail.ViewModels/ComposePageViewModel.cs @@ -204,16 +204,6 @@ namespace Wino.Mail.ViewModels await _worker.ExecuteAsync(draftSendPreparationRequest); } - public async Task IncludeAttachmentAsync(MailAttachmentViewModel viewModel) - { - //if (bodyBuilder == null) return; - - //bodyBuilder.Attachments.Add(viewModel.FileName, new MemoryStream(viewModel.Content)); - - //LoadAttachments(); - IncludedAttachments.Add(viewModel); - } - public async Task UpdateMimeChangesAsync() { if (isUpdatingMimeBlocked || CurrentMimeMessage == null || ComposingAccount == null || CurrentMailDraftItem == null) return; diff --git a/Wino.Mail/Views/ComposePage.xaml.cs b/Wino.Mail/Views/ComposePage.xaml.cs index 935bc373..166b1722 100644 --- a/Wino.Mail/Views/ComposePage.xaml.cs +++ b/Wino.Mail/Views/ComposePage.xaml.cs @@ -239,7 +239,7 @@ namespace Wino.Views { var attachmentViewModel = await file.ToAttachmentViewModelAsync(); - await ViewModel.IncludeAttachmentAsync(attachmentViewModel); + ViewModel.IncludedAttachments.Add(attachmentViewModel); } }