adding mid on the message returned data on addMessage