mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 01:38:51 +03:00
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:
parent
7945abe6b9
commit
9df1fb91ff
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