mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-19 19:31:37 +02:00
Merge pull request #206 from matrix-org/dbkr/invites_silently_fail
Make 3pid invite failures show errors
This commit is contained in:
commit
f997a6fff2
@ -202,12 +202,12 @@ module.exports = React.createClass({
|
|||||||
var promise = inviteWarningDefer.promise;
|
var promise = inviteWarningDefer.promise;
|
||||||
if (isEmailAddress) {
|
if (isEmailAddress) {
|
||||||
promise = promise.then(function() {
|
promise = promise.then(function() {
|
||||||
MatrixClientPeg.get().inviteByEmail(self.props.roomId, inputText);
|
return MatrixClientPeg.get().inviteByEmail(self.props.roomId, inputText);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
promise = promise.then(function() {
|
promise = promise.then(function() {
|
||||||
MatrixClientPeg.get().invite(self.props.roomId, inputText);
|
return MatrixClientPeg.get().invite(self.props.roomId, inputText);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user