You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Tidy up imports
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user