1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-28 20:02:16 -05:00

Fix visible outbox on startup

This commit is contained in:
Tankred Hase 2015-04-09 14:46:33 +02:00
parent e5f281c124
commit 1d64c2dfb0

View File

@ -1205,6 +1205,7 @@ Email.prototype._initFolders = function() {
self._account.folders.forEach(function(folder) { self._account.folders.forEach(function(folder) {
folder.modseq = folder.modseq || 0; folder.modseq = folder.modseq || 0;
folder.count = folder.count || 0;
folder.uids = folder.uids || []; // attach an empty uids array to the folder folder.uids = folder.uids || []; // attach an empty uids array to the folder
folder.uids.sort(function(a, b) { folder.uids.sort(function(a, b) {
return a - b; return a - b;