updateLastMessage
fun Channel.updateLastMessage(receivedEventDate: Date, message: Message, currentUserId: String): Channel
Updates the Channel with newest Message.
Parameters
receivedEventDate
Date when the event which updates the message was received.
message
New message to update the channel with.
currentUserId
User id of the currently logged in user.