  * @param {string} body
  * @param {object=} payload
 ###
-editMessage = (messageId, body, payload = {}) ->
+editMessage = (messageId, body, payload) ->
+
+  payload = messageHelpers.sanitizePayload payload
 
   { socialapi } = kd.singletons
   { EDIT_MESSAGE_BEGIN

 * @param {string} body
 * @param {object=} payload
###
createComment = (messageId, body, payload = {}) ->

  { socialapi } = kd.singletons
  { CREATE_COMMENT_BEGIN

whoami                 = require 'app/util/whoami'
actionTypes            = require './actiontypes'
generateFakeIdentifier = require 'app/util/generateFakeIdentifier'
messageHelpers         = require '../helpers/message'

dispatch = (args...) -> kd.singletons.reactor.dispatch args...

