Fix CountlyAnaltics NPE on MatrixClientPeg
This commit is contained in:
parent
3f11259fa8
commit
70fe26d163
1 changed files with 1 additions and 3 deletions
|
@ -350,10 +350,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||||
|
|
||||||
if (SettingsStore.getValue("analyticsOptIn")) {
|
if (SettingsStore.getValue("analyticsOptIn")) {
|
||||||
Analytics.enable();
|
Analytics.enable();
|
||||||
CountlyAnalytics.instance.enable(false);
|
|
||||||
} else {
|
|
||||||
CountlyAnalytics.instance.enable(true);
|
|
||||||
}
|
}
|
||||||
|
CountlyAnalytics.instance.enable(true); // anonymous
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: [REACT-WARNING] Replace with appropriate lifecycle stage
|
// TODO: [REACT-WARNING] Replace with appropriate lifecycle stage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue