Fetch folders and labels at the same time

This commit is contained in:
Evan Morikawa 2016-11-28 16:11:10 -08:00
parent a2e3c98d84
commit 9cbc284ed5

View file

@ -123,7 +123,8 @@ class NylasSyncWorker
needed = [
{model: 'threads'},
{model: 'messages', maxFetchCount: 5000}
{model: @_account.categoryCollection(), initialPageSize: 1000}
{model: 'folders', initialPageSize: 1000}
{model: 'labels', initialPageSize: 1000}
{model: 'drafts'},
{model: 'contacts'},
{model: 'calendars'},