diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index 80f927c89a..e71e1dffb7 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -469,20 +469,23 @@ module.exports = React.createClass({ } }); - var tagsSection = -
- { canSetTag ? - ("Tagged as: " + tags.map(function(tag, i) { - return (); - })) : (self.state.tags && self.state.tags.join) ? ("Tagged as: " +self.state.tags.join(", ")) : "" - } -
+ var tagsSection = null; + if (canSetTag || self.state.tags) { + var tagsSection = +
+ Tagged as: { canSetTag ? + (tags.map(function(tag, i) { + return (); + })) : (self.state.tags && self.state.tags.join) ? self.state.tags.join(", ") : "" + } +
+ } // If there is no history_visibility, it is assumed to be 'shared'. // http://matrix.org/docs/spec/r0.0.0/client_server.html#id31