adding mid on the message returned data on addMessage

instead of https://github.com/NodeBB/NodeBB/pull/2514