mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(sync-status) Fix off by one error in store
This commit is contained in:
parent
78d1b85c7f
commit
454676581a
1 changed files with 2 additions and 2 deletions
|
@ -83,11 +83,11 @@ class NylasSyncStatusStore extends NylasStore {
|
|||
const name = folder.name || folder.displayName
|
||||
const {uidnext, fetchedmin, fetchedmax} = folder.syncState || {}
|
||||
if (uidnext) {
|
||||
const progress = (+fetchedmax - +fetchedmin) / uidnext
|
||||
const progress = (+fetchedmax - +fetchedmin + 1) / uidnext
|
||||
updates[name] = progress
|
||||
} else {
|
||||
// We don't have a uidnext if the sync hasn't started at all,
|
||||
// but we've fund the folder.
|
||||
// but we've found the folder.
|
||||
updates[name] = 0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue