Added code to remove off-topic from category selections.

That category has been removed.
This commit is contained in:
Ajay Ramachandran 2020-05-11 18:28:27 -04:00
parent aa8225c196
commit b1d9cde715

View file

@ -281,6 +281,16 @@ async function migrateOldFormats() {
Config.config.whitelistedChannels = newChannelList;
}
// Check if off-topic category needs to be removed
for (let i = 0; i < Config.config.categorySelections.length; i++) {
if (Config.config.categorySelections[i].name === "offtopic") {
Config.config.categorySelections.splice(i);
// Call set listener
Config.config.categorySelections = Config.config.categorySelections;
break;
}
}
}
async function setupConfig() {