public fun changeAttachmentState(showAttachments: Boolean) { isShowingAttachments = showAttachments  if (!showAttachments) {dismissAttachments()}}
Notifies the ViewModel if we should show attachments or not.