mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
[local-sync] Fix compilation of FetchNewMessagesInFolder operation
Summary: This was broken because babel could not compile the `super` keyword Test Plan: manual Reviewers: evan, mark, halla Reviewed By: halla Differential Revision: https://phab.nylas.com/D3804
This commit is contained in:
parent
556f4a6c6f
commit
469cbad22b
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ class FetchNewMessagesInFolderIMAP extends FetchMessagesInFolderIMAP {
|
||||||
// Without a fetchedmax, can't tell what's new!
|
// Without a fetchedmax, can't tell what's new!
|
||||||
// If we haven't fetched anything on this folder, let's run a normal fetch
|
// If we haven't fetched anything on this folder, let's run a normal fetch
|
||||||
// operation
|
// operation
|
||||||
yield super.runTask(db, imap)
|
// Can't use `super` in this scenario because babel can't compile it under
|
||||||
|
// these conditions. User regular prototype instead
|
||||||
|
console.log(`🔚 📂 🆕$ {this._folder.name} has no fetchedmax - running regular fetch operation`)
|
||||||
|
yield FetchMessagesInFolderIMAP.prototype.runTask.call(this, db, imap)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue