 						if i.msRequestFullscreen
 							i.msRequestFullscreen()
 
-
-
-	'click .chat-new-messages': (event) ->
-		console.log 'room click .chat-new-messages' if window.rocketDebug
-		# chatMessages = $('#chat-window-' + this._id + ' .messages-box .wrapper')
-		# chatMessages.animate({scrollTop: chatMessages[0].scrollHeight}, 'normal')
-		$('#chat-window-' + FlowRouter.getParam('_id') + ' .input-message').focus()
-
 	'click .toggle-favorite': (event) ->
 		console.log 'room click .toggle-favorite' if window.rocketDebug
 		event.stopPropagation()
 		event.preventDefault()
-		Meteor.call 'toogleFavorite', FlowRouter.getParam('_id'), !$('i', event.currentTarget).hasClass('favorite-room')
+		Meteor.call 'toogleFavorite', @_id, !$('i', event.currentTarget).hasClass('favorite-room')
 
 	'click .join': (event) ->
 		console.log 'room click .join' if window.rocketDebug
 		event.stopPropagation()
 		event.preventDefault()
-		Meteor.call 'joinRoom', FlowRouter.getParam('_id')
+		Meteor.call 'joinRoom', @_id
 
 	"click .burger": ->
 		console.log 'room click .burger' if window.rocketDebug


	'click button.load-more': (e) ->
		console.log 'room click button.load-more' if window.rocketDebug
		RoomHistoryManager.getMore FlowRouter.getParam('_id')

	'autocompleteselect #user-add-search': (event, template, doc) ->
		console.log 'room autocompleteselect #user-add-search' if window.rocketDebug


	'focus .input-message': (event) ->
		console.log 'room focus .input-message' if window.rocketDebug
		KonchatNotification.removeRoomNotification @_id

	'keyup .input-message': (event) ->
		console.log 'room keyup .input-message', @_id if window.rocketDebug
		ChatMessages.keyup(@_id, event, Template.instance())

	'keydown .input-message': (event) ->
		console.log 'room keydown .input-message', @_id if window.rocketDebug
		ChatMessages.keydown(@_id, event, Template.instance())

	'click .message-form .icon-paper-plane': (event) ->
		console.log 'room click .message-form .icon-paper-plane' if window.rocketDebug
		input = $(event.currentTarget).siblings("textarea")
		ChatMessages.send(this._id, input.get(0))

	'click .add-user': (event) ->
		console.log 'room click click .add-user' if window.rocketDebug
