Fixed mail search leaving out mails that did not fit into a search (#1169)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-06 07:48:40 +01:00
1 parent 188d17688a
commit 7f0d0ed8f6
11 files changed
+924 -245

No files matched your search

@@ -31,5 +31,7 @@ internal sealed class MailTexts
return this.texts.Count - 1;
}
public async Task SanitizeAsync(PromptInjectionGuardService guardService) => this.sanitizedTexts = await guardService.SanitizeAsync(this.texts);
/// <param name="guardService">The prompt injection filter.</param>
/// <param name="reportingScope">The action the texts belong to, when it filters more than once; without one, the user hears right away what was filtered.</param>
public async Task SanitizeAsync(PromptInjectionGuardService guardService, PromptInjectionReportingScope? reportingScope = null) => this.sanitizedTexts = await guardService.SanitizeAsync(this.texts, reportingScope);
}