Disable menu when editing a message, fix #4788