Fix RoomSettings save

Looks like saving RoomSettings had been broken since 0d7cc59. `isFulfilled`
cannot be used as a static function.
This commit is contained in:
Richard van der Hoff 2017-07-14 14:24:35 +01:00
parent 7945abe6b9
commit 9df1fb91ff

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