 	fileUploadAllowedMediaTypes: ->
 		return RocketChat.settings.get('FileUpload_MediaTypeWhiteList')
 
+
 Template.room.events
 	"touchstart .message": (e, t) ->
 		message = this._arguments[1]

		observer.observe wrapperUl,
			childList: true
		# observer.disconnect()

	wrapper.addEventListener 'mousewheel', ->
		template.atBottom = false

			evt["click .#{button.id}"] = button.action
			Template.room.events evt


Template.room.onDestroyed ->
	RocketChat.TabBar.resetButtons()

	window.removeEventListener 'resize', this.onWindowResize


Template.room.onRendered ->
	this.chatMessages = new ChatMessages
