From d75c1bc0d669490dc2da438d4814319df5c39bd6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 24 Jan 2022 15:58:31 +0000 Subject: [PATCH] Fall back to legacy analytics for guest users (#7616) --- 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 4e05a89815..e6b10aaea8 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") &&