Comment typo
and out comment in more sensible place
This commit is contained in:
parent
a2904ad33f
commit
b66c449bd7
1 changed files with 2 additions and 2 deletions
|
@ -679,9 +679,9 @@ module.exports = React.createClass({
|
||||||
if (this.state.room) {
|
if (this.state.room) {
|
||||||
const me = this.state.room.getMember(MatrixClientPeg.get().credentials.userId);
|
const me = this.state.room.getMember(MatrixClientPeg.get().credentials.userId);
|
||||||
if (me && me.membership == 'invite') {
|
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) {
|
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());
|
return Rooms.setDMRoom(this.state.room.roomId, me.events.member.getSender());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue