Skip to main content

changeGroupMemberMute

Feature Introduction

Description

The group owner or group administrators can change the mute status of group members.

Note

A group owner can mute both administrators and regular members, while an administrator can only mute regular members.

Related Callback: onGroupApplicationAccepted

Function Prototype


- (void)changeGroupMemberMute:(NSString *)groupID
userID:(NSString *)userID
mutedSeconds:(NSInteger)mutedSeconds
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
groupIDNSStringYesGroup ID
userIDNSStringYesID of the user to be muted
mutedSecondsNSIntegerYesDuration of the mute in seconds. Setting to 0 cancels the mute

Return Results

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


[OIMManager.manager changeGroupMemberMute:@""
userID:@""
mutedSeconds:30
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];