adding mid on the message returned data on addMessage

I pulled to v0.5.x, should that have been pulled to master, unless you're planning another 0.5 patch :)