[fix] initial loading of inbox uids and headers

pull/77/merge
Francis Lachapelle 2015-04-08 12:07:28 -04:00
parent eae327ca19
commit 755efa789b
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -13,6 +13,7 @@ Bug fixes
- fixed timezone of MSExchange freebusy information - fixed timezone of MSExchange freebusy information
- fixed a potential EAS error with multiple email priority flags - fixed a potential EAS error with multiple email priority flags
- fixed paragraphs margins in HTML messages (#3163) - fixed paragraphs margins in HTML messages (#3163)
- fixed regression when loading the inbox for the first time
2.2.17a (2015-03-15) 2.2.17a (2015-03-15)
-------------------- --------------------

View File

@ -916,10 +916,11 @@ function openMailbox(mailbox, reload) {
dataSource.init(inboxData['uids'], inboxData['threaded'], inboxData['headers'], inboxData['quotas']); dataSource.init(inboxData['uids'], inboxData['threaded'], inboxData['headers'], inboxData['quotas']);
inboxData = null; // invalidate this initial lookup inboxData = null; // invalidate this initial lookup
} }
else else {
// Fetch UIDs and headers from server // Fetch UIDs and headers from server
var content = Object.toJSON(urlParams); var content = Object.toJSON(urlParams);
dataSource.load(content); dataSource.load(content);
}
// Cache data source // Cache data source
Mailer.dataSources.set(key, dataSource); Mailer.dataSources.set(key, dataSource);
// Update unseen count // Update unseen count