EventIndexPanel: Use formatCountLong to format the event and room counts.

This commit is contained in:
Damir Jelić 2020-01-24 16:15:06 +01:00
parent 2d8477aaa6
commit ddea7415c7
2 changed files with 6 additions and 5 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, formatCount} from "../../../utils/FormattingUtils";
import {formatBytes, formatCountLong} from "../../../utils/FormattingUtils";
import EventIndexPeg from "../../../indexing/EventIndexPeg";
export default class EventIndexPanel extends React.Component {
@ -115,7 +115,8 @@ 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 ")} {formatCount(this.state.roomCount)} {_t("rooms.")}
{_t( " to store messages from ")}
{formatCountLong(this.state.roomCount)} {_t("rooms.")}
</div>
<div>
<AccessibleButton kind="primary" onClick={this._onManage}>