 whoami                 = require 'app/util/whoami'
 actionTypes            = require './actiontypes'
 generateFakeIdentifier = require 'app/util/generateFakeIdentifier'
+messageHelpers         = require '../helpers/message'
 
 dispatch = (args...) -> kd.singletons.reactor.dispatch args...
 

 *
 * @param {string} channelId
 * @param {string} body
###
createMessage = (channelId, body) ->

  { socialapi } = kd.singletons
  { CREATE_MESSAGE_BEGIN

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

  payload = messageHelpers.sanitizePayload payload

  { socialapi } = kd.singletons
  { EDIT_MESSAGE_BEGIN
