Merge pull request #5369 from matrix-org/t3chguy/countly

fix CountlyAnalytics canEnable on wrong target
This commit is contained in:
Michael Telatynski 2020-10-30 13:47:35 +00:00 committed by GitHub
commit b6532f9b80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -341,7 +341,7 @@ export default class SecurityUserSettingsTab extends React.Component {
}
let privacySection;
if (Analytics.canEnable() || CountlyAnalytics.canEnable()) {
if (Analytics.canEnable() || CountlyAnalytics.instance.canEnable()) {
privacySection = <React.Fragment>
<div className="mx_SettingsTab_heading">{_t("Privacy")}</div>
<div className="mx_SettingsTab_section">