Skip to content
Snippets Groups Projects
Commit 2f863af2 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge branch 'master' into features/avatar

* master:
  List only users with messages
parents 2496118a 24360dde
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,8 @@ Template.chatWindowDashboard.helpers
$in: room?.uids
# unless Template.instance().showUsersOffline.get()
# filter.status = { $ne: 'offline' }
filter.$and = [{ status: {$exists: true} }, { status: {$ne: 'offline'} }]
users = Meteor.users.find(filter, { sort: { name: 1 } } ).fetch()
......@@ -469,7 +471,7 @@ Template.chatWindowDashboard.onCreated ->
this.scrollOnBottom = true
this.showUsersOffline = new ReactiveVar false
this.subscribe("allUsers")
# this.subscribe("allUsers")
Template.chatWindowDashboard.onRendered ->
FlexTab.check()
......
......@@ -106,7 +106,6 @@
<div class="content">
{{#if isGroupChat}}
<div class="list-view{{#if $.Session.get 'showUserInfo'}} -hidden{{/if}}">
{{#if Template.subscriptionsReady}}
{{#with roomUsers}}
<div class="status">
<h2>{{_ "chatWindowDashboard.Members_List"}}</h2>
......@@ -121,7 +120,6 @@
{{/each}}
</ul>
{{/with}}
{{/if}}
</div>
<div class="user-view animated{{#unless $.Session.get 'showUserInfo'}} -hidden{{/unless}}">
{{#with flexUserInfo}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment