Browse SDKs · iOS
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. The pinned iOS SDK does not provide the exempt-user parameter available in the WASM SDK.

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.