mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
fix potential bug where canonical alias setting is broken (modulo autoheisting)
This commit is contained in:
parent
999c52b650
commit
8d749be51f
@ -83,13 +83,11 @@ module.exports = React.createClass({
|
|||||||
alias: this.state.canonicalAlias
|
alias: this.state.canonicalAlias
|
||||||
}, ""
|
}, ""
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// save new aliases for m.room.aliases
|
// save new aliases for m.room.aliases
|
||||||
var aliasOperations = this.getAliasOperations();
|
var aliasOperations = this.getAliasOperations();
|
||||||
var promises = [];
|
|
||||||
for (var i = 0; i < aliasOperations.length; i++) {
|
for (var i = 0; i < aliasOperations.length; i++) {
|
||||||
var alias_operation = aliasOperations[i];
|
var alias_operation = aliasOperations[i];
|
||||||
console.log("alias %s %s", alias_operation.place, alias_operation.val);
|
console.log("alias %s %s", alias_operation.place, alias_operation.val);
|
||||||
@ -301,7 +299,7 @@ module.exports = React.createClass({
|
|||||||
<div className="mx_RoomSettings_addAlias">
|
<div className="mx_RoomSettings_addAlias">
|
||||||
<img src="img/plus.svg" width="14" height="14" alt="Add"
|
<img src="img/plus.svg" width="14" height="14" alt="Add"
|
||||||
onClick={ self.onAliasAdded.bind(self, undefined) }/>
|
onClick={ self.onAliasAdded.bind(self, undefined) }/>
|
||||||
</div>
|
</div>
|
||||||
</div> : ""
|
</div> : ""
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user