mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
EventIndex: Fix some lint issues.
This commit is contained in:
parent
8e26268079
commit
a2892f5b02
@ -15,16 +15,10 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import classNames from 'classnames';
|
|
||||||
|
|
||||||
import * as sdk from '../../../index';
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import AccessibleButton from "../elements/AccessibleButton";
|
import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import SettingsStore, {SettingLevel} from "../../../settings/SettingsStore";
|
|
||||||
import LabelledToggleSwitch from "../elements/LabelledToggleSwitch";
|
|
||||||
import Field from "../elements/Field";
|
|
||||||
import {formatBytes} from "../../../utils/FormattingUtils";
|
import {formatBytes} from "../../../utils/FormattingUtils";
|
||||||
import EventIndexPeg from "../../../indexing/EventIndexPeg";
|
import EventIndexPeg from "../../../indexing/EventIndexPeg";
|
||||||
|
|
||||||
@ -83,7 +77,6 @@ export default class EventIndexPanel extends React.Component {
|
|||||||
onFinished: () => {},
|
onFinished: () => {},
|
||||||
}, null, /* priority = */ false, /* static = */ true,
|
}, null, /* priority = */ false, /* static = */ true,
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@ -111,7 +104,7 @@ export default class EventIndexPanel extends React.Component {
|
|||||||
{
|
{
|
||||||
_t( "Riot can't securely cache encrypted messages locally" +
|
_t( "Riot can't securely cache encrypted messages locally" +
|
||||||
"while running in a web browser. Use Riot Desktop for" +
|
"while running in a web browser. Use Riot Desktop for" +
|
||||||
"encrypted messages to appear in search results."
|
"encrypted messages to appear in search results.",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,7 +23,6 @@ import SettingsStore from "../../../../../settings/SettingsStore";
|
|||||||
import Field from "../../../elements/Field";
|
import Field from "../../../elements/Field";
|
||||||
import * as sdk from "../../../../..";
|
import * as sdk from "../../../../..";
|
||||||
import PlatformPeg from "../../../../../PlatformPeg";
|
import PlatformPeg from "../../../../../PlatformPeg";
|
||||||
import {formatBytes} from "../../../../../utils/FormattingUtils";
|
|
||||||
|
|
||||||
export default class PreferencesUserSettingsTab extends React.Component {
|
export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
static COMPOSER_SETTINGS = [
|
static COMPOSER_SETTINGS = [
|
||||||
|
@ -470,8 +470,8 @@ export default class EventIndex {
|
|||||||
/**
|
/**
|
||||||
* Get the room that we are currently crawling.
|
* Get the room that we are currently crawling.
|
||||||
*
|
*
|
||||||
* @returns A MatrixRoom that is being currently crawled, null if no room is
|
* @returns {Room} A MatrixRoom that is being currently crawled, null
|
||||||
* currently being crawled.
|
* if no room is currently being crawled.
|
||||||
*/
|
*/
|
||||||
currentRoom() {
|
currentRoom() {
|
||||||
if (this._currentCheckpoint === null && this.crawlerCheckpoints.length === 0) {
|
if (this._currentCheckpoint === null && this.crawlerCheckpoints.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user