 		action: function(event, instance)
 		validation: function(message)
 		order: integer
-	### 
+	###
 	addButton = (config) ->
 		unless config?.id
 			throw new Meteor.Error "MessageAction-addButton-error", "Button id was not informed."

		i18nLabel: 'Edit'
		action: (event, instance) ->
			message = $(event.currentTarget).closest('.message')[0]
			instance.chatMessages.edit(message)
			$("\##{message.id} .message-dropdown").hide()
			input = instance.find('.input-message')
			Meteor.setTimeout ->

					timer: 1000
					showConfirmButton: false

				chatMessages[Session.get('openedRoom')].deleteMsg(message)
		validation: (message) ->
			return RocketChat.authz.hasAtLeastOnePermission('delete-message', message.rid ) or RocketChat.settings.get('Message_AllowDeleting') and message.u?._id is Meteor.userId()
		order: 2