(js) Fix mail filters with flags prefixed with $

Fixes #4461
This commit is contained in:
Francis Lachapelle committed 2018-05-14 10:31:41 -04:00
1 parent 371504e997
commit 6f042ca7d2
2 files changed
+7 -2

No files matched your search

@@ -27,7 +27,12 @@
data.SOGoMailLabelsColorsValues = [];
_.forEach(data.SOGoMailLabelsColors, function (value, key) {
data.SOGoMailLabelsColorsKeys.push(key);
data.SOGoMailLabelsColorsValues.push(value);
data.SOGoMailLabelsColorsValues.push(value); // value is an array of the user-defined name and color
if (key.charAt(0) == '$') {
Object.defineProperty(data.SOGoMailLabelsColors, '_' + key,
Object.getOwnPropertyDescriptor(data.SOGoMailLabelsColors, key));
delete data.SOGoMailLabelsColors[key];
}
});
_.forEach(data.SOGoSieveFilters, function(filter) {