Skip to content

Commit

Permalink
Fixes avoids sending sub/changed only when changed
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Nov 17, 2022
1 parent c76bb65 commit d10e76b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plus/subscription/subscriptionService.ts
Expand Up @@ -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
Expand Down

0 comments on commit d10e76b

Please sign in to comment.