Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fall back to legacy analytics for guest users (#7616)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Jan 24, 2022
1 parent 9d9b77d commit d75c1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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") &&
Expand Down

0 comments on commit d75c1bc

Please sign in to comment.