From 9df1fb91ffea54853bbb0f11af0f1becbef3aa8d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 14 Jul 2017 14:24:35 +0100 Subject: [PATCH] Fix RoomSettings save Looks like saving RoomSettings had been broken since 0d7cc59. `isFulfilled` cannot be used as a static function. --- src/components/views/rooms/RoomSettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index 387aca2fa5..d6a973f648 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -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); }