Browse SDKs · iOS
SDKsiOS

Update a group member’s avatar

Update a specified member’s avatar within a group with OpenIM iOS SDK.

Copy
NSDictionary *updates = @{
    @"groupID": groupID,
    @"userID": targetUserID,
    @"faceURL": avatarURL
};

[[OIMManager manager] setGroupMemberInfo:updates
    onSuccess:nil
    onFailure:nil];

A group-specific member avatar is distinct from the user's account avatar. A successful callback means that the request has completed. Reconcile the profile through onGroupMemberInfoChanged: or a new query, merging by groupID:userID.