Browse SDKs · WASM
SDKsWASM

Set group extra data

Set an application-defined extension string on a group.

Copy
const previous = JSON.parse(group.ex || '{}');

await openimsdk.setGroupInfo({
  groupID,
  ex: JSON.stringify({
    ...previous,
    projectID: 'project-42',
  }),
});

ex is a complete string; the SDK does not merge individual JSON fields automatically. If several modules share it, assign stable namespaces and preserve data from other modules before writing.

After the Promise succeeds, merge the latest group profile from OnGroupInfoChanged by groupID. See Group overview for the complete listener.