Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/app/xapian/searchservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down