Skip to content
Snippets Groups Projects
Commit bb0590eb authored by Matthias Brun's avatar Matthias Brun
Browse files

Prevent archived private groups from showing up in the list of all private groups

parent bd2c75f1
No related branches found
No related tags found
No related merge requests found
Template.listPrivateGroupsFlex.helpers
groups: ->
return ChatSubscription.find { t: { $in: ['p']}, f: { $ne: true } }, { sort: 't': 1, 'name': 1 }
return ChatSubscription.find { t: { $in: ['p']}, f: { $ne: true }, archived: { $ne: true } }, { sort: 't': 1, 'name': 1 }
Template.listPrivateGroupsFlex.events
'click header': ->
......
......@@ -15,3 +15,4 @@ Meteor.publish 'subscription', ->
open: 1
alert: 1
unread: 1
archived: 1
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