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],
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue