Merge pull request #1223 from matrix-org/rav/roomsettings_promise_usage
Fix RoomSettings save
This commit is contained in:
commit
2a52c902e2
1 changed files with 2 additions and 2 deletions
|
@ -298,7 +298,7 @@ module.exports = React.createClass({
|
||||||
// color scheme
|
// color scheme
|
||||||
var p;
|
var p;
|
||||||
p = this.saveColor();
|
p = this.saveColor();
|
||||||
if (!Promise.isFulfilled(p)) {
|
if (!p.isFulfilled()) {
|
||||||
promises.push(p);
|
promises.push(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
// encryption
|
// encryption
|
||||||
p = this.saveEnableEncryption();
|
p = this.saveEnableEncryption();
|
||||||
if (!Promise.isFulfilled(p)) {
|
if (!p.isFulfilled()) {
|
||||||
promises.push(p);
|
promises.push(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue