mirror of https://github.com/vector-im/riot-web
Don't set room name if it hasn't changed
parent
0fa7f6cb63
commit
46764c3614
|
@ -28,7 +28,9 @@ module.exports = React.createClass({
|
||||||
mixins: [RoomHeaderController],
|
mixins: [RoomHeaderController],
|
||||||
|
|
||||||
onNameChange: function(new_name) {
|
onNameChange: function(new_name) {
|
||||||
MatrixClientPeg.get().setRoomName(this.props.room.roomId, new_name);
|
if (this.props.room.name != new_name) {
|
||||||
|
MatrixClientPeg.get().setRoomName(this.props.room.roomId, new_name);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
|
Loading…
Reference in New Issue