From eb0cf2ebb4ed777b5a4f79798c33efaf52117236 Mon Sep 17 00:00:00 2001 From: Nomad8885 <218718999+Nomad8885@users.noreply.github.com> Date: Tue, 12 May 2026 15:15:19 +0700 Subject: [PATCH] Clarify full index sync prompt --- src/app/xapian/searchservice.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/xapian/searchservice.ts b/src/app/xapian/searchservice.ts index b83c992c4..1af1d6f39 100644 --- a/src/app/xapian/searchservice.ts +++ b/src/app/xapian/searchservice.ts @@ -727,16 +727,18 @@ export class SearchService { 0) / (1024 * 1024) ); - const totalMessages = partitions.reduce((prev, curr, partitionNdx) => prev + - curr.numberOfMessages, + const remainingMessages = partitions.reduce((prev, curr, partitionNdx) => prev + + (partitionNdx < 1 ? 0 : curr.numberOfMessages), 0); + const totalMessages = doccount + remainingMessages; dialog.componentInstance.title = 'Continue synchronizing?'; dialog.componentInstance.question = `Already synchronized index for ${doccount} of - your most recent messages. To synchronize entire index - (for ${totalMessages} messages), - there's an additional download of ${remainingDownloadMB} MB.`; + your most recent messages. To synchronize the entire index + (of ${totalMessages} messages), there is an additional + download of ${remainingDownloadMB} MB for another + ${remainingMessages} messages.`; dialog.afterClosed() .subscribe(res => { userHasAcceptedDownloadAllPartitions = res;