mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +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
|
// color scheme
|
||||||
var p;
|
var p;
|
||||||
p = this.saveColor();
|
p = this.saveColor();
|
||||||
if (!Promise.isFulfilled(p)) {
|
if (!p.isFulfilled()) {
|
||||||
promises.push(p);
|
promises.push(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
// encryption
|
// encryption
|
||||||
p = this.saveEnableEncryption();
|
p = this.saveEnableEncryption();
|
||||||
if (!Promise.isFulfilled(p)) {
|
if (!p.isFulfilled()) {
|
||||||
promises.push(p);
|
promises.push(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue