Skip to content
Snippets Groups Projects
Commit 76978158 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

List only channels

parent ac54f03e
No related branches found
No related tags found
No related merge requests found
......@@ -282,7 +282,7 @@ Template.chatWindowDashboard.helpers
getInput: ->
return template.find('.input-message')
getFilter: (collection, filter) ->
return collection.find({name: new RegExp(filter, 'i')}, {limit: 10})
return collection.find({t: 'c', name: new RegExp(filter, 'i')}, {limit: 10})
getValue: (_id, collection) ->
return collection.findOne(_id)?.name
......
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