Browse SDKs · iOS
Platform
SDKsiOS

Mute or unmute the entire group

Enable or disable group-wide mute with OpenIM iOS SDK.

Copy
[[OIMManager manager] changeGroupMute:groupID
    isMute:YES
    onSuccess:^(NSString * _Nullable data) { [self showGroupMuted]; }
    onFailure:^(NSInteger code, NSString *message) {
        [self showErrorCode:code message:message];
    }];

Pass YES to enable group-wide mute or NO to disable it. This method does not provide an exempt-user parameter.

A successful callback means that the server completed the setting request. onGroupInfoChanged: may subsequently return an updated OIMGroupInfo. For the complete delegate, see Groups overview.