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

pull/1620/head
Matthias Brun 10 years ago
parent bd2c75f17c
commit bb0590eb0c
  1. 2
      packages/rocketchat-ui-sidenav/side-nav/listPrivateGroupsFlex.coffee
  2. 1
      server/publications/subscription.coffee

@ -1,6 +1,6 @@
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

Loading…
Cancel
Save