Merge up from develop
This commit is contained in:
commit
524eeaa315
27 changed files with 780 additions and 171 deletions
|
@ -188,7 +188,10 @@ module.exports = React.createClass({
|
|||
for (let i = 0; i < dmRooms.length; i++) {
|
||||
let room = MatrixClientPeg.get().getRoom(dmRooms[i]);
|
||||
if (room) {
|
||||
return room;
|
||||
const me = room.getMember(MatrixClientPeg.get().credentials.userId);
|
||||
if (me.membership == 'join') {
|
||||
return room;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -221,6 +224,17 @@ module.exports = React.createClass({
|
|||
})
|
||||
.done();
|
||||
}
|
||||
// // Start the chat
|
||||
// createRoom({dmUserId: addr})
|
||||
// .catch(function(err) {
|
||||
// var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
// Modal.createDialog(ErrorDialog, {
|
||||
// title: "Failure to invite user",
|
||||
// description: err.toString()
|
||||
// });
|
||||
// return null;
|
||||
// })
|
||||
// .done();
|
||||
|
||||
// Close - this will happen before the above, as that is async
|
||||
this.props.onFinished(true, addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue