1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Fall back to legacy analytics for guest users (#7616)

This commit is contained in:
Michael Telatynski
2022-01-24 15:58:31 +00:00
committed by GitHub
parent 9d9b77d5e1
commit d75c1bc0d6

View File

@@ -1354,7 +1354,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
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") &&