From 75e2862a80c212b7080e6a9fc7f72e039249de72 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 16 Feb 2022 13:11:19 -0500 Subject: [PATCH] MM-41176 Don't send Rudder requests when blocked (#2285) Co-authored-by: Mattermod --- mattermost-plugin/webapp/src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mattermost-plugin/webapp/src/index.tsx b/mattermost-plugin/webapp/src/index.tsx index 599844fc8..08b816e49 100644 --- a/mattermost-plugin/webapp/src/index.tsx +++ b/mattermost-plugin/webapp/src/index.tsx @@ -193,7 +193,9 @@ export default class Plugin { anonymousId: TELEMETRY_OPTIONS.anonymousId, }) - TelemetryClient.setTelemetryHandler(new RudderTelemetryHandler()) + rudderAnalytics.ready(() => { + TelemetryClient.setTelemetryHandler(new RudderTelemetryHandler()) + }) } }