use getJoinedMemberCount() instead of getJoinedMembers().length as the latter doesnt take LL into account
This commit is contained in:
parent
860c6355f0
commit
a54629276f
4 changed files with 4 additions and 4 deletions
|
@ -363,7 +363,7 @@ module.exports = React.createClass({
|
|||
// XXX: EVIL HACK to autofocus inviting on empty rooms.
|
||||
// We use the setTimeout to avoid racing with focus_composer.
|
||||
if (this.state.room &&
|
||||
this.state.room.getJoinedMembers().length == 1 &&
|
||||
this.state.room.getJoinedMemberCount() == 1 &&
|
||||
this.state.room.getLiveTimeline() &&
|
||||
this.state.room.getLiveTimeline().getEvents() &&
|
||||
this.state.room.getLiveTimeline().getEvents().length <= 6) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue