public fun clearNewMessageState() { threadMessagesState = threadMessagesState.copy(newMessageState = null, unreadCount = 0) messagesState = messagesState.copy(newMessageState = null, unreadCount = 0) }
Clears the [NewMessageState] from our UI state, after the user taps on the "Scroll to bottom" or "New Message" actions in the list or simply scrolls to the bottom.