You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Only show cookie bar if analytics configured
This commit is contained in:
@ -354,8 +354,10 @@ const LoggedInView = React.createClass({
|
|||||||
|
|
||||||
let topBar;
|
let topBar;
|
||||||
const isGuest = this.props.matrixClient.isGuest();
|
const isGuest = this.props.matrixClient.isGuest();
|
||||||
if (this.props.showCookieBar) {
|
if (this.props.showCookieBar &&
|
||||||
const policyUrl = this.props.config.piwik ? (this.props.config.piwik.policyUrl || null) : null;
|
this.props.config.piwik
|
||||||
|
) {
|
||||||
|
const policyUrl = this.props.config.piwik.policyUrl || null;
|
||||||
topBar = <CookieBar policyUrl={policyUrl} />;
|
topBar = <CookieBar policyUrl={policyUrl} />;
|
||||||
} else if (this.props.hasNewVersion) {
|
} else if (this.props.hasNewVersion) {
|
||||||
topBar = <NewVersionBar version={this.props.version} newVersion={this.props.newVersion}
|
topBar = <NewVersionBar version={this.props.version} newVersion={this.props.newVersion}
|
||||||
|
Reference in New Issue
Block a user