mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-13 21:19:25 +02:00
Oops, fix newscan filter
This commit is contained in:
parent
89bce2c23c
commit
73bc211b94
1 changed files with 3 additions and 4 deletions
|
@ -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];
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue