From d10e76bb234db010a84574a400c6e54c8e10d2bc Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 16 Nov 2022 23:26:07 -0500 Subject: [PATCH] Fixes avoids sending sub/changed only when changed --- src/plus/subscription/subscriptionService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plus/subscription/subscriptionService.ts b/src/plus/subscription/subscriptionService.ts index 9ec3609..66702bd 100644 --- a/src/plus/subscription/subscriptionService.ts +++ b/src/plus/subscription/subscriptionService.ts @@ -889,7 +889,10 @@ export class SubscriptionService implements Disposable { : {}), }; - this.container.telemetry.sendEvent(matches ? 'subscription' : 'subscription/changed', data); + this.container.telemetry.sendEvent( + previous == null || matches ? 'subscription' : 'subscription/changed', + data, + ); }); // If the previous and new subscriptions are exactly the same, kick out