mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-11-09 23:06:11 +01:00
Remove new syntax for old TB
This commit is contained in:
@@ -333,15 +333,19 @@ var SysTrayX = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
msgCountIterate(type, account, folder) {
|
msgCountIterate(type, account, folder) {
|
||||||
const match = SysTrayX.filters?.filter(
|
let count = false;
|
||||||
(filter) =>
|
|
||||||
filter.folder.accountName === account &&
|
|
||||||
filter.folder.name === folder.prettyName
|
|
||||||
);
|
|
||||||
|
|
||||||
const count = match
|
if (SysTrayX.filters) {
|
||||||
? match.length > 0
|
const match = SysTrayX.filters.filter(
|
||||||
: folder.getFlag(Ci.nsMsgFolderFlags.Inbox);
|
(filter) =>
|
||||||
|
filter.folder.accountName === account &&
|
||||||
|
filter.folder.name === folder.prettyName
|
||||||
|
);
|
||||||
|
|
||||||
|
count = match.length > 0
|
||||||
|
} else {
|
||||||
|
count = folder.getFlag(Ci.nsMsgFolderFlags.Inbox);
|
||||||
|
}
|
||||||
|
|
||||||
if (count) {
|
if (count) {
|
||||||
SysTrayX["add" + type](folder);
|
SysTrayX["add" + type](folder);
|
||||||
|
|||||||
Reference in New Issue
Block a user