Merge pull request #206 from matrix-org/dbkr/invites_silently_fail

Make 3pid invite failures show errors
pull/21833/head
David Baker 2016-03-10 10:07:47 +00:00
commit f997a6fff2
1 changed files with 2 additions and 2 deletions

View File

@ -202,12 +202,12 @@ module.exports = React.createClass({
var promise = inviteWarningDefer.promise;
if (isEmailAddress) {
promise = promise.then(function() {
MatrixClientPeg.get().inviteByEmail(self.props.roomId, inputText);
return MatrixClientPeg.get().inviteByEmail(self.props.roomId, inputText);
});
}
else {
promise = promise.then(function() {
MatrixClientPeg.get().invite(self.props.roomId, inputText);
return MatrixClientPeg.get().invite(self.props.roomId, inputText);
});
}