Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
// Leave a groupCometChat.leaveGroup(GUID: "GUID", onSuccess: { response in }, onError: { error in })// Listen for member left events// Conform to CometChatGroupDelegatefunc onGroupMemberLeft(action: ActionMessage, leftUser: User, leftGroup: Group) { }
Leave a group to stop receiving messages and updates from it. Once you leave, you’ll need to rejoin to participate again.
Group owners cannot leave without first transferring ownership to another member. See Transfer Group Ownership.
let guid = "cometchat-guid-11"CometChat.leaveGroup(GUID: guid, onSuccess: { (response) in print("Left group successfully.")}, onError: { (error) in print("Group leaving failed with error:" + error!.errorDescription)})