 
 			navigator.geolocation.watchPosition success, error
 		else
-			@location.set false
+			RocketChat.Geolocation.set false

	'click .message-form .icon-location.location': (event, instance) ->
		roomId = @_id

		position = instance.location.get()

		latitude = position.coords.latitude
		longitude = position.coords.longitude

			return 'show-send'

	showLocation: ->
		return RocketChat.Geolocation.get() isnt false

	notSubscribedTpl: ->
		return RocketChat.roomTypes.getNotSubscribedTpl @_id
