From 46764c3614fbbe776545bc37a2623ac804f01180 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 20 Jul 2015 10:23:07 +0100 Subject: [PATCH] Don't set room name if it hasn't changed --- skins/base/views/molecules/RoomHeader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skins/base/views/molecules/RoomHeader.js b/skins/base/views/molecules/RoomHeader.js index 46349b9f52..a67699772c 100644 --- a/skins/base/views/molecules/RoomHeader.js +++ b/skins/base/views/molecules/RoomHeader.js @@ -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() {