Made updates to messaging functionality on server side and on the main messaging section.