Tidy up imports

pull/21833/head
David Baker 2018-01-09 17:57:18 +00:00
parent 4c101628b5
commit dbb8f878cb
1 changed files with 4 additions and 8 deletions

View File

@ -24,11 +24,7 @@ import WhoIsTyping from '../../WhoIsTyping';
import MatrixClientPeg from '../../MatrixClientPeg'; import MatrixClientPeg from '../../MatrixClientPeg';
import MemberAvatar from '../views/avatars/MemberAvatar'; import MemberAvatar from '../views/avatars/MemberAvatar';
import Resend from '../../Resend'; import Resend from '../../Resend';
import { import * as cryptodevices from '../../cryptodevices';
showUnknownDeviceDialogForMessages,
markAllDevicesKnown,
getUnknownDevicesForRoom,
} from '../../cryptodevices';
const STATUS_BAR_HIDDEN = 0; const STATUS_BAR_HIDDEN = 0;
const STATUS_BAR_EXPANDED = 1; const STATUS_BAR_EXPANDED = 1;
@ -153,8 +149,8 @@ module.exports = React.createClass({
}, },
_onSendWithoutVerifyingClick: function() { _onSendWithoutVerifyingClick: function() {
getUnknownDevicesForRoom(MatrixClientPeg.get(), this.props.room).then((devices) => { cryptodevices.getUnknownDevicesForRoom(MatrixClientPeg.get(), this.props.room).then((devices) => {
markAllDevicesKnown(MatrixClientPeg.get(), devices); cryptodevices.markAllDevicesKnown(MatrixClientPeg.get(), devices);
Resend.resendUnsentEvents(this.props.room); Resend.resendUnsentEvents(this.props.room);
}); });
}, },
@ -168,7 +164,7 @@ module.exports = React.createClass({
}, },
_onShowDevicesClick: function() { _onShowDevicesClick: function() {
showUnknownDeviceDialogForMessages(MatrixClientPeg.get(), this.props.room); cryptodevices.showUnknownDeviceDialogForMessages(MatrixClientPeg.get(), this.props.room);
}, },
_onRoomLocalEchoUpdated: function(event, room, oldEventId, oldStatus) { _onRoomLocalEchoUpdated: function(event, room, oldEventId, oldStatus) {