Index: lib/filterStorage.js |
=================================================================== |
--- a/lib/filterStorage.js |
+++ b/lib/filterStorage.js |
@@ -140,16 +140,21 @@ |
*/ |
removeSubscription(subscription) |
{ |
for (let i = 0; i < FilterStorage.subscriptions.length; i++) |
{ |
if (FilterStorage.subscriptions[i].url == subscription.url) |
{ |
removeSubscriptionFilters(subscription); |
+ for (let filter of subscription.filters) |
+ { |
+ if (filter.subscriptions.size == 0) |
+ Filter.knownFilters.delete(filter.text); |
+ } |
FilterStorage.subscriptions.splice(i--, 1); |
FilterStorage.knownSubscriptions.delete(subscription.url); |
FilterNotifier.triggerListeners("subscription.removed", subscription); |
return; |
} |
} |
}, |