 	'click .message-form .icon-location.location': (event, instance) ->
 		roomId = @_id
 
-		position = instance.location.get()
+		position = RocketChat.Geolocation.get()
 
 		latitude = position.coords.latitude
 		longitude = position.coords.longitude

		else
			@showMicButton.set false

		if RocketChat.settings.get('MapView_Enabled') and RocketChat.settings.get('MapView_GMapsAPIKey')?.length and navigator.geolocation?.getCurrentPosition?
			success = (position) =>
				@location.set position

			error = (error) =>
				console.log 'Error getting your geolocation', error
				@location.set false

			options =
				enableHighAccuracy: true

	@isMessageFieldEmpty = new ReactiveVar true
	@showMicButton = new ReactiveVar false
	@showVideoRec = new ReactiveVar false

	@autorun =>
		videoRegex = /video\/webm|video\/\*/i
