mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Rename variable as it's now not just MAU
This commit is contained in:
parent
9bde468e30
commit
7d690d98e3
@ -433,7 +433,7 @@ const LoggedInView = React.createClass({
|
||||
break;
|
||||
}
|
||||
|
||||
const mauLimitEvent = this.state.serverNoticeEvents.find((e) => {
|
||||
const usageLimitEvent = this.state.serverNoticeEvents.find((e) => {
|
||||
return e && e.getType() === 'm.server_notice.usage_limit_reached';
|
||||
});
|
||||
|
||||
@ -444,10 +444,10 @@ const LoggedInView = React.createClass({
|
||||
adminContact={this.state.syncErrorData.error.data.admin_contact}
|
||||
limitType={this.state.syncErrorData.error.data.limit_type}
|
||||
/>;
|
||||
} else if (mauLimitEvent) {
|
||||
} else if (usageLimitEvent) {
|
||||
topBar = <ServerLimitBar kind='soft'
|
||||
adminContact={mauLimitEvent.getContent().admin_contact}
|
||||
limitType={mauLimitEvent.getContent().limit_type}
|
||||
adminContact={usageLimitEvent.getContent().admin_contact}
|
||||
limitType={usageLimitEvent.getContent().limit_type}
|
||||
/>;
|
||||
} else if (this.props.showCookieBar &&
|
||||
this.props.config.piwik
|
||||
|
Loading…
Reference in New Issue
Block a user