From b66c449bd7ea93738b346092f19fd4fc38c5159a Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Sep 2016 16:08:11 +0100 Subject: [PATCH] Comment typo and out comment in more sensible place --- src/components/structures/RoomView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 91d1918c0f..e4ef1433f1 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -679,9 +679,9 @@ module.exports = React.createClass({ if (this.state.room) { const me = this.state.room.getMember(MatrixClientPeg.get().credentials.userId); if (me && me.membership == 'invite') { - // The 'direct' hihnt is there, so declare that this is a DM room for - // whoever invited us. if (me.events.member.getContent().is_direct) { + // The 'direct' hint is there, so declare that this is a DM room for + // whoever invited us. return Rooms.setDMRoom(this.state.room.roomId, me.events.member.getSender()); } }