You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user