launchMessages

Toggles the visibility state of the messages modal.

This function calls updateIsMessagesModalVisible with the negated value of isMessagesModalVisible to toggle the modal's visibility.

Example:

val options = LaunchMessagesOptions(
isMessagesModalVisible = false
)

launchMessages(options)
// This will open the messages modal if it's currently closed, or close it if it's open.