AI Integration Quick Reference
AI Integration Quick Reference
Group object and the new owner by a User object. See Leave Group.
Transfer Ownership
UsetransferGroupOwnership() to transfer ownership to another group member.
- Dart
| Parameter | Type | Description |
|---|---|---|
guid | String | The GUID of the group for which ownership needs to be transferred |
uid | String | The UID of the member who should become the new owner |
onSuccess | Function(String) | Callback triggered on successful ownership transfer |
onError | Function(CometChatException) | Callback triggered on error |
Response
Response
On Success — A
String message confirming the ownership transfer:| Parameter | Type | Description | Sample Value |
|---|---|---|---|
message | string | Success confirmation message | "cometchat-guid-1 ownership transferred successfully" |
Error
Error
| Parameter | Type | Description | Sample Value |
|---|---|---|---|
code | string | Error code identifier | "ERR_NOT_A_MEMBER" |
message | string | Human-readable error message | "The target user is not a member of the group." |
details | string | Additional technical details | "Ownership can only be transferred to an existing group member." |
Next Steps
Leave Group
Leave a group after transferring ownership
Change Member Scope
Promote or demote group members