Skip to main content

changeGroupMute

Feature Introduction

Description

The group owner or group admin changes the mute status of the group.

Note

After being muted, regular members cannot send messages, but the group owner and admins can continue to send messages.

Related Callback: onGroupInfoChanged

Function Prototype


- (void)changeGroupMute:(NSString *)groupID
isMute:(BOOL)isMute
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
groupIDNSStringYesGroup ID
isMuteBOOLYesMute status

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


[OIMManager.manager changeGroupMute:@""
isMute:YES
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];