adding mid on the message returned data on addMessage
Merge pull request #2526 from akhoury/patch-5

adding mid on the message returned data on addMessage