Browse SDKs · React Native
Platform
SDKsReact Native

Change group mute status

OpenIM React Native SDK guide for change group mute status.

Copy

Call changeGroupMute() to enable or disable group-wide muting.

await OpenIMSDK.changeGroupMute({
  groupID,
  isMute: true,
  muteBypassUserIDs: [serviceAccountUserID],
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesID of the target group.
isMutebooleanYesUse true to enable group-wide muting or false to disable it.
muteBypassUserIDs Enterprisestring[]NoUser IDs that can still send messages while the group is muted.

Do not add every member to muteBypassUserIDsEnterprise. The server controls whether the group owner and administrators can send messages.

Return value

When the call completes, the group-wide mute setting is updated. Group profile changes trigger OnGroupInfoChanged; see Group overview for event handling.