Leave Conversation

This guide covers the process of leaving a conversation.

NOTE: A step-by-step tutorial to building a web-based chat application is also available here for JavaScript and iOS.

Given a conversation you are already a member of, you can stop being an active member of it by leaving the conversation:

conversation.leave({ (error) in
    if let error = error {
        NSLog("Error leaving conversation: \(error.localizedDescription)")
    NSLog("Conversation left.")
[self.conversation leave:^(NSError * _Nullable error) {
    if (error) {
        NSLog(@"Error leaving conversation: %@", error);
    NSLog(@"Conversation left.");