Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -49,6 +49,19 @@ |
subscriptions: null, |
/** |
+ * Whether this is a user-defined filter |
+ * @type Boolean |
+ */ |
+ get isUserDefined() |
+ { |
+ let {SpecialSubscription} = require("subscriptionClasses"); |
+ let isUserDefined = this.subscriptions.some(s => s instanceof SpecialSubscription); |
+ |
+ Object.defineProperty(this, "isUserDefined", {value: isUserDefined}); |
+ return isUserDefined; |
+ }, |
+ |
+ /** |
* Serializes the filter to an array of strings for writing out on the disk. |
* @param {Array of String} buffer buffer to push the serialization results into |
*/ |