for the method postLeaveRequest, there is a typo in the tutorial

postLeaveRequest in ChatViewController.m replace ApplicationDelegate.client by _client.