Bugfixes and improvements for Folderlist

This commit is contained in:
djmaze 2021-08-24 18:23:17 +02:00
parent 327d6c32ca
commit ef4d604f6d
8 changed files with 47 additions and 46 deletions

View file

@ -4,14 +4,14 @@
* @enum {number}
*/
export const FolderType = {
Inbox: 10,
Sent: 11,
Drafts: 12,
Trash: 13,
Spam: 14,
Archive: 15,
NotSpam: 80,
User: 99
User: 0,
Inbox: 1,
Sent: 2,
Drafts: 3,
Spam: 4, // JUNK
Trash: 5,
Archive: 6,
NotSpam: 80
};
/**

View file

@ -198,7 +198,7 @@ export function folderListOptionsBuilder(
foldersWalk = folders => {
folders.forEach(oItem => {
if (showUnsubscribed || oItem.subscribed() || !oItem.exists || oItem.hasSubscribedSubfolders()) {
if (showUnsubscribed || oItem.hasSubscriptions() || !oItem.exists) {
aResult.push({
id: oItem.fullNameRaw,
name: