Index: compiled/storage/FilterStorage.cpp |
=================================================================== |
--- a/compiled/storage/FilterStorage.cpp |
+++ b/compiled/storage/FilterStorage.cpp |
@@ -105,16 +105,26 @@ |
FilterNotifier::SubscriptionChange( |
FilterNotifier::Topic::SUBSCRIPTION_REMOVED, |
subscription |
); |
return true; |
} |
+void FilterStorage::ClearSubscriptionFilters(Subscription& subscription) |
+{ |
+ subscription.ClearFilters(); |
+ |
+ FilterNotifier::SubscriptionChange( |
+ FilterNotifier::Topic::SUBSCRIPTION_FILTERS_REPLACED, |
+ subscription |
+ ); |
+} |
+ |
bool FilterStorage::MoveSubscription(Subscription& subscription, |
const Subscription* insertBefore) |
{ |
int oldPos = IndexOfSubscription(subscription); |
assert2(oldPos >= 0, ABP_TEXT("Attempt to move a subscription that is not in the list"_str)); |
if (oldPos == -1) |
return false; |