Oops, fix newscan filter

This commit is contained in:
Bryan Ashby 2018-07-07 20:03:03 -06:00
parent 89bce2c23c
commit 73bc211b94
1 changed files with 3 additions and 4 deletions

View File

@ -112,10 +112,9 @@ exports.getModule = class NewScanModule extends MenuModule {
newScanMessageArea(conf, cb) { newScanMessageArea(conf, cb) {
// :TODO: it would be nice to cache this - must be done by conf! // :TODO: it would be nice to cache this - must be done by conf!
const omitMessageAreaTags = valueAsArray(_.get(this, 'menuConfig.config.omitMessageAreaTags', [])); const omitMessageAreaTags = valueAsArray(_.get(this, 'menuConfig.config.omitMessageAreaTags', []));
const sortedAreas = _.omitBy( const sortedAreas = msgArea.getSortedAvailMessageAreasByConfTag(conf.confTag, { client : this.client } ).filter(area => {
msgArea.getSortedAvailMessageAreasByConfTag(conf.confTag, { client : this.client } ), return area => !omitMessageAreaTags.includes(area.areaTag);
area => omitMessageAreaTags.includes(area.areaTag) });
);
const currentArea = sortedAreas[this.currentScanAux.area]; const currentArea = sortedAreas[this.currentScanAux.area];
// //