private fun removeMessageFocus(messageId: String) { val messages = currentMessagesState.messageItems.map { if (it is MessageItemState && it.message.id == messageId) { it.copy(focusState = MessageFocusRemoved) } else { it } }  if (scrollToMessage?.id == messageId) { scrollToMessage = null }  updateMessages(messages) }
Removes the focus from the message with the given ID.