Update group details such as name, type, icon, and description using the CometChat JavaScript SDK.
AI Integration Quick Reference
// Update group detailsconst group = new CometChat.Group("GUID", "New Name", CometChat.GROUP_TYPE.PUBLIC);const updated = await CometChat.updateGroup(group);
Update a group’s name, icon, description, or metadata. The GUID and group type cannot be changed after creation. See the Group Class reference for all editable fields.
On success, returns a Group object with the updated details.
There is no real-time event listener for group updates. To get the latest group information after calling updateGroup(), fetch the group details again using getGroup().