Skip to content
Snippets Groups Projects
Unverified Commit ff25a24b authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Remove .coffee file

parent 75facda4
No related branches found
No related tags found
No related merge requests found
Template.privateGroups.helpers
isActive: ->
return 'active' if ChatSubscription.findOne({ t: { $in: ['p']}, f: { $ne: true }, open: true, rid: Session.get('openedRoom') }, { fields: { _id: 1 } })?
rooms: ->
query = { t: { $in: ['p']}, f: { $ne: true }, open: true }
if Meteor.user()?.settings?.preferences?.unreadRoomsMode
query.$or = [
alert: $ne: true
,
hideUnreadStatus: true
]
return ChatSubscription.find query, { sort: 't': 1, 'name': 1 }
total: ->
return ChatSubscription.find({ t: { $in: ['p']}, f: { $ne: true } }).count()
totalOpen: ->
return ChatSubscription.find({ t: { $in: ['p']}, f: { $ne: true }, open: true }).count()
Template.privateGroups.events
'click .more-groups': ->
SideNav.setFlex "listPrivateGroupsFlex"
SideNav.openFlex()
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