This hook is client side to check the message for a ticket reference in the form of '[ref: 123]'