mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
Fix bug with accounts that have uidmin=0, not 1
This commit is contained in:
parent
ecc8bd67d3
commit
7056a4b8f4
1 changed files with 2 additions and 2 deletions
|
@ -299,7 +299,7 @@ class FetchMessagesInFolder {
|
|||
|
||||
_fetchUnsyncedMessages() {
|
||||
const savedSyncState = this._category.syncState;
|
||||
const isFirstSync = !savedSyncState.fetchedmax;
|
||||
const isFirstSync = savedSyncState.fetchedmax === undefined;
|
||||
const boxUidnext = this._box.uidnext;
|
||||
const boxUidvalidity = this._box.uidvalidity;
|
||||
|
||||
|
@ -350,7 +350,7 @@ class FetchMessagesInFolder {
|
|||
|
||||
_runScan() {
|
||||
const {fetchedmin, fetchedmax} = this._category.syncState;
|
||||
if (!fetchedmin || !fetchedmax) {
|
||||
if ((fetchedmin === undefined) || (fetchedmax === undefined)) {
|
||||
throw new Error("Unseen messages must be fetched at least once before the first update/delete scan.")
|
||||
}
|
||||
return this._shouldRunDeepScan() ? this._runDeepScan() : this._runShallowScan()
|
||||
|
|
Loading…
Reference in a new issue