Browse SDKs · uni-app / uni-app x
SDKsuni-app

Update a member’s group nickname

OpenIM uni-app / uni-app x SDK guide for Update a member’s group nickname.

Copy

An in-group nickname changes only the member profile in the specified group and does not update the account nickname.

import { setGroupMemberInfo } from '@/uni_modules/unix-openim-sdk'

await setGroupMemberInfo({ groupID, userID: 'user_b', nickname: 'Alice (Design)' })

groupID and userID together identify the member. The server applies group-role and policy checks to determine whether the current user can edit this member.

Promise success means that the server completed the request. Merge a later onGroupMemberInfoChanged item by groupID:userID; do not update only the current page.