Skip to main content

changeGroupMute

Description

info

The group owner or group administrator modifies the mute status of the group.

Note

After being muted, ordinary members cannot send messages, and the group owner and administrator can continue to send messages.

Related Callbacks:
onGroupInfoChanged

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
groupIDNSStringYesGroup ID
isMuteBOOLYesWhether to mute

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess
onFailureOIMFailureCallbackFailure

Code Example


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