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

several performance improvements

parent afedc7da
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ Router.configure
return [Meteor.subscribe('userData'), RoomManager.init()]
onBeforeAction: ->
Session.set('flexOpened', false)
Session.setDefault('flexOpened', false)
Session.set('openedRoom', null)
this.next()
......@@ -76,10 +76,7 @@ Router.route '/room/:_id',
unless ChatRoom.find(@params._id).count()
Router.go 'home'
Session.set('flexOpened', false)
Session.set('openedRoom', this.params._id)
# zera a showUserInfo pra garantir que vai estar com a listagem do grupo aberta
Session.set('showUserInfo', null)
this.next()
......
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