Merge pull request #1223 from matrix-org/rav/roomsettings_promise_usage

Fix RoomSettings save
This commit is contained in:
Richard van der Hoff 2017-07-14 14:47:14 +01:00 committed by GitHub
commit 2a52c902e2

View File

@ -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);
}