I need to obtain the last message of a collection of messages based on the conversation room, for this I need to obtain only the last element of an array that is previously orde