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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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") &&