Matthew Hodgson 2017-05-27 16:03:07 +01:00
parent c34edbec3e
commit 957aa0403d
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ module.exports = React.createClass({
_roomNameElement: function(fallback) {
fallback = fallback || 'a room';
const name = this.props.room ? this.props.room.name : (this.props.room_alias || "");
return name ? { name } : fallback;
return name ? name : fallback;
},
render: function() {