Refactored all synchronizers to deal with some of the chronic issues.
This commit is contained in:
@@ -1124,6 +1124,18 @@ public class MailService : BaseDatabaseService, IMailService
|
||||
return new GmailArchiveComparisonResult(addedMails, removedMails);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<string>> GetRecentMailIdsForFolderAsync(Guid folderId, int count)
|
||||
{
|
||||
var recentMails = await Connection.Table<MailCopy>()
|
||||
.Where(a => a.FolderId == folderId)
|
||||
.OrderByDescending(a => a.CreationDate)
|
||||
.Take(count)
|
||||
.ToListAsync()
|
||||
.ConfigureAwait(false);
|
||||
|
||||
return recentMails.Select(m => m.Id);
|
||||
}
|
||||
|
||||
public async Task<List<MailCopy>> GetMailItemsAsync(IEnumerable<string> mailCopyIds)
|
||||
{
|
||||
if (!mailCopyIds.Any()) return [];
|
||||
|
||||
Reference in New Issue
Block a user