From 423f02ca7f3bf9f002bdf1a66bc430d6b1ac93f1 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 24 Jan 2022 15:49:34 +0000 Subject: [PATCH] Fall back to legacy analytics for guest users --- src/components/structures/MatrixChat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index 4e05a89815f..e6b10aaea8d 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1354,7 +1354,7 @@ export default class MatrixChat extends React.PureComponent { StorageManager.tryPersistStorage(); - if (PosthogAnalytics.instance.isEnabled()) { + if (PosthogAnalytics.instance.isEnabled() && SettingsStore.isLevelSupported(SettingLevel.ACCOUNT)) { this.initPosthogAnalyticsToast(); } else if (Analytics.canEnable() || CountlyAnalytics.instance.canEnable()) { if (SettingsStore.getValue("showCookieBar") &&