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
|
||||
var p;
|
||||
p = this.saveColor();
|
||||
if (!Promise.isFulfilled(p)) {
|
||||
if (!p.isFulfilled()) {
|
||||
promises.push(p);
|
||||
}
|
||||
|
||||
|
@ -310,7 +310,7 @@ module.exports = React.createClass({
|
|||
|
||||
// encryption
|
||||
p = this.saveEnableEncryption();
|
||||
if (!Promise.isFulfilled(p)) {
|
||||
if (!p.isFulfilled()) {
|
||||
promises.push(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue