refactor addMessageToConversationwithReceivedMessage and addMessageToConversationWithReceivedMessageArray