Attach files dropped onto the list of attachments

This commit is contained in:
Thorsten Sommer committed 2026-09-13 17:12:33 +02:00
1 parent c69cc05d08
commit fbe3fdda4b
3 files changed
+107 -3

No files matched your search

@@ -275,7 +275,7 @@ public partial class AttachDocuments : MSGComponentBase
return;
var previousAttachments = this.DocumentPaths.ToHashSet();
this.DocumentPaths = await ReviewAttachmentsDialog.OpenDialogAsync(this.DialogService, this.DocumentPaths);
this.DocumentPaths = await ReviewAttachmentsDialog.OpenDialogAsync(this.DialogService, this.DocumentPaths, this.AttachDroppedPathsAsync, () => this.IsUnavailable);
foreach (var removedAttachment in previousAttachments.Except(this.DocumentPaths))
ManagedTranscriptAttachment.TryDeleteOwnedFile(removedAttachment);