mirror of https://github.com/vector-im/riot-web
Merge pull request #2601 from matrix-org/bwindels/fixstartdm
Fix: typeerror when creating DMpull/21833/head
commit
7f630b2b46
|
@ -209,10 +209,15 @@ module.exports = React.createClass({
|
||||||
const topicElement =
|
const topicElement =
|
||||||
<div className="mx_RoomHeader_topic" ref="topic" title={topic} dir="auto">{ topic }</div>;
|
<div className="mx_RoomHeader_topic" ref="topic" title={topic} dir="auto">{ topic }</div>;
|
||||||
const avatarSize = 28;
|
const avatarSize = 28;
|
||||||
const roomAvatar = (
|
let roomAvatar;
|
||||||
<RoomAvatar room={this.props.room} width={avatarSize} height={avatarSize} oobData={this.props.oobData}
|
if (this.props.room) {
|
||||||
viewAvatarOnClick={true} />
|
roomAvatar = (<RoomAvatar
|
||||||
);
|
room={this.props.room}
|
||||||
|
width={avatarSize}
|
||||||
|
height={avatarSize}
|
||||||
|
oobData={this.props.oobData}
|
||||||
|
viewAvatarOnClick={true} />);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.props.onSettingsClick) {
|
if (this.props.onSettingsClick) {
|
||||||
settingsButton =
|
settingsButton =
|
||||||
|
|
Loading…
Reference in New Issue