Hello there, ltutorial,
OTClient is a cunt most of the times, you could always use the inbuilt terminal and debug your situation, I think I can help you out on this one.
I don't know why you have two functions for this, enabling chat and disabling chat, which is kind of redundant since it just...