Fixed chat event default handling. Added automatically storing clientId.