(+) More robust ChatLogic

-check if the type of the received message is consistent with the type
we are expecting