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

Fix CountlyAnalytics NPE on MatrixClientPeg
This commit is contained in:
Michael Telatynski 2020-10-30 14:28:48 +00:00 committed by GitHub
commit f80ee391bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View file

@ -103,7 +103,7 @@ export default class SecurityUserSettingsTab extends React.Component {
_updateAnalytics = (checked) => {
checked ? Analytics.enable() : Analytics.disable();
CountlyAnalytics.instance.enable(!checked);
CountlyAnalytics.instance.enable(/* anonymous = */ !checked);
};
_onExportE2eKeysClicked = () => {