Changed client_update_chat to zero all elements of the array first