Fixed an issue with loading mails with infinite scroll.

This commit is contained in:
Burak Kaan Köse
2025-12-15 21:06:13 +01:00
parent 9fbbd00dc5
commit 8a68fafedf
+1 -1
View File
@@ -193,7 +193,7 @@ public class MailService : BaseDatabaseService, IMailService
{ {
var excludePlaceholders = string.Join(",", options.ExistingUniqueIds.Select(_ => "?")); var excludePlaceholders = string.Join(",", options.ExistingUniqueIds.Select(_ => "?"));
whereClauses.Add($"MailCopy.UniqueId NOT IN ({excludePlaceholders})"); whereClauses.Add($"MailCopy.UniqueId NOT IN ({excludePlaceholders})");
parameters.AddRange(options.ExistingUniqueIds.Select(id => (object)id)); parameters.AddRange(options.ExistingUniqueIds.Keys.Select(id => (object)id));
} }
if (whereClauses.Any()) if (whereClauses.Any())