Don't set room name if it hasn't changed

This commit is contained in:
Erik Johnston 2015-07-20 10:23:07 +01:00
parent 0fa7f6cb63
commit 46764c3614
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ module.exports = React.createClass({
mixins: [RoomHeaderController],
onNameChange: function(new_name) {
if (this.props.room.name != new_name) {
MatrixClientPeg.get().setRoomName(this.props.room.roomId, new_name);
}
},
render: function() {