You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
make UnknownDeviceDialog work again, other than the mess of vector-im/vector-web#3020
This commit is contained in:
@@ -553,6 +553,7 @@ export default class MessageComposerInput extends React.Component {
|
||||
sendMessagePromise = sendTextFn.call(this.client, this.props.room.roomId, contentText);
|
||||
}
|
||||
|
||||
var self = this;
|
||||
sendMessagePromise.then((res) => {
|
||||
dis.dispatch({
|
||||
action: 'message_sent',
|
||||
@@ -562,7 +563,7 @@ export default class MessageComposerInput extends React.Component {
|
||||
var UnknownDeviceDialog = sdk.getComponent("dialogs.UnknownDeviceDialog");
|
||||
Modal.createDialog(UnknownDeviceDialog, {
|
||||
devices: err.devices,
|
||||
room: this.props.room,
|
||||
room: self.props.room,
|
||||
});
|
||||
}
|
||||
dis.dispatch({
|
||||
|
||||
Reference in New Issue
Block a user