make UnknownDeviceDialog work again, other than the mess of vector-im/vector-web#3020
This commit is contained in:
parent
d9c0513ee2
commit
7bc3fc8696
6 changed files with 33 additions and 30 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue