messageDispatchHelper = async options => {
  let { con_id, con_with, message_id, message, messageType, dispatch } = options
  let session = uData('session')

  dispatch(
    messaged({
      con_id,
      message,
      message_id,
      message_time: `${new Date().getTime()}`,
      mssg_by: Number(session),
      mssg_to: con_with,
      type: messageType,
      status: 'read',
    })
  )

  dispatch(
    changeLastMssg({
      con_id,
      lastMssg: {
        lastMessage: message,
        lastMssgBy: session,
        lastMssgTime: `${new Date().getTime()}`,
        lastMssgType: messageType,
      },
    })
  )
}
A helper for dispatching actions related to messages
@param {Object} options