Lint
This commit is contained in:
parent
ff1fd15e72
commit
7e956514a2
3 changed files with 4 additions and 8 deletions
|
@ -26,7 +26,6 @@ import dis from '../../dispatcher';
|
||||||
import RateLimitedFunc from '../../ratelimitedfunc';
|
import RateLimitedFunc from '../../ratelimitedfunc';
|
||||||
import { showGroupInviteDialog, showGroupAddRoomDialog } from '../../GroupAddressPicker';
|
import { showGroupInviteDialog, showGroupAddRoomDialog } from '../../GroupAddressPicker';
|
||||||
import GroupStore from '../../stores/GroupStore';
|
import GroupStore from '../../stores/GroupStore';
|
||||||
import RoomViewStore from '../../stores/RoomViewStore';
|
|
||||||
import SettingsStore from "../../settings/SettingsStore";
|
import SettingsStore from "../../settings/SettingsStore";
|
||||||
import {RIGHT_PANEL_PHASES, RIGHT_PANEL_PHASES_NO_ARGS} from "../../stores/RightPanelStorePhases";
|
import {RIGHT_PANEL_PHASES, RIGHT_PANEL_PHASES_NO_ARGS} from "../../stores/RightPanelStorePhases";
|
||||||
import RightPanelStore from "../../stores/RightPanelStore";
|
import RightPanelStore from "../../stores/RightPanelStore";
|
||||||
|
@ -239,7 +238,8 @@ export default class RightPanel extends React.Component {
|
||||||
// or the member list if we were in the member panel... phew.
|
// or the member list if we were in the member panel... phew.
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: "view_user",
|
action: "view_user",
|
||||||
member: this.state.phase === RIGHT_PANEL_PHASES.EncryptionPanel ? this.state.member : null,
|
member: this.state.phase === RIGHT_PANEL_PHASES.EncryptionPanel ?
|
||||||
|
this.state.member : null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,13 +15,10 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import Modal from "../../../Modal";
|
|
||||||
import dis from "../../../dispatcher";
|
import dis from "../../../dispatcher";
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import DeviceListener from '../../../DeviceListener';
|
import DeviceListener from '../../../DeviceListener';
|
||||||
import NewSessionReviewDialog from '../dialogs/NewSessionReviewDialog';
|
|
||||||
import FormButton from '../elements/FormButton';
|
import FormButton from '../elements/FormButton';
|
||||||
import { replaceableComponent } from '../../../utils/replaceableComponent';
|
import { replaceableComponent } from '../../../utils/replaceableComponent';
|
||||||
|
|
||||||
|
@ -41,8 +38,6 @@ export default class UnverifiedSessionToast extends React.PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { device } = this.props;
|
|
||||||
|
|
||||||
return (<div>
|
return (<div>
|
||||||
<div className="mx_Toast_description">
|
<div className="mx_Toast_description">
|
||||||
{_t("Verify your other sessions")}
|
{_t("Verify your other sessions")}
|
||||||
|
|
|
@ -92,7 +92,8 @@ export async function verifyDevice(user, device) {
|
||||||
refireParams: {member: user, verificationRequestPromise},
|
refireParams: {member: user, verificationRequestPromise},
|
||||||
});
|
});
|
||||||
} else if (action === "legacy") {
|
} else if (action === "legacy") {
|
||||||
const ManualDeviceKeyVerificationDialog = sdk.getComponent("dialogs.ManualDeviceKeyVerificationDialog");
|
const ManualDeviceKeyVerificationDialog =
|
||||||
|
sdk.getComponent("dialogs.ManualDeviceKeyVerificationDialog");
|
||||||
Modal.createTrackedDialog("Legacy verify session", "legacy verify session",
|
Modal.createTrackedDialog("Legacy verify session", "legacy verify session",
|
||||||
ManualDeviceKeyVerificationDialog,
|
ManualDeviceKeyVerificationDialog,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue