Toggles the visibility state of the messages modal.
This method updates the visibility state of the messages modal by calling the provided
function with the negated current visibility state. If the modal is currently visible,
it will be closed; if it's hidden, it will be opened.
Param: options
The options for launching the messages modal.
Param: options.updateIsMessagesModalVisible
Function to update the visibility state of the messages modal.
Toggles the visibility state of the messages modal.
This method updates the visibility state of the messages modal by calling the provided function with the negated current visibility state. If the modal is currently visible, it will be closed; if it's hidden, it will be opened.
Param: options
The options for launching the messages modal.
Param: options.updateIsMessagesModalVisible
Function to update the visibility state of the messages modal.
Param: options.isMessagesModalVisible
Current visibility state of the messages modal.
Example