Browse SDKs · React Native
Platform
SDKsReact Native

Update group member avatar

Update the avatar of a specific group member in a group using the OpenIM React Native SDK.

Copy

Update the avatar of a designated member within a specific group:

await OpenIMSDK.setGroupMemberInfo({
  groupID: 'group-001',
  userID: 'user-002',
  faceURL: 'https://example.com/avatar.png',
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID.
userIDstringYesUser ID of the member whose avatar is being updated.
faceURLstringYesMember avatar URL within this specific group.

Group-specific avatars apply solely within the target group. To update an account-level global avatar, see Update self profile.

Return value

A resolved Promise confirms that the member avatar was successfully updated on the server.

Member profile changes emit the OnGroupMemberInfoChanged event containing updated profile information. Match and update the corresponding member record using the composite key groupID:userID. For complete event listeners, see Get group member list by page.