EventIndexPanel: Use formatCount to format the room count.

pull/21833/head
Damir Jelić 2020-01-24 11:13:09 +01:00
parent 128c0b7300
commit 660240e2c0
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import * as sdk from '../../../index';
import Modal from '../../../Modal';
import SettingsStore, {SettingLevel} from "../../../settings/SettingsStore";
import AccessibleButton from "../elements/AccessibleButton";
import {formatBytes} from "../../../utils/FormattingUtils";
import {formatBytes, formatCount} from "../../../utils/FormattingUtils";
import EventIndexPeg from "../../../indexing/EventIndexPeg";
export default class EventIndexPanel extends React.Component {
@ -115,7 +115,7 @@ export default class EventIndexPanel extends React.Component {
{_t( "Securely cache encrypted messages locally for them " +
"to appear in search results, using ")
} {formatBytes(this.state.eventIndexSize, 0)}
{_t( " to store messages from ")} {this.state.roomCount} {_t("rooms.")}
{_t( " to store messages from ")} {formatCount(this.state.roomCount)} {_t("rooms.")}
</div>
<div>
<AccessibleButton kind="primary" onClick={this._onManage}>