Index: compiled/storage/FilterStorage.cpp |
=================================================================== |
--- a/compiled/storage/FilterStorage.cpp |
+++ b/compiled/storage/FilterStorage.cpp |
@@ -103,16 +103,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, u"Attempt to move a subscription that is not in the list"_str); |
if (oldPos == -1) |
return false; |