Browse SDKs · Flutter
Platform
SDKsFlutter

Change group mute

Enable or disable group-wide mute in a specified group using the OpenIM Flutter SDK.

Copy

Enable or disable group-wide mute for an entire group. The caller's administrative permissions are enforced by OpenIMServer:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.
muteboolYesPass true to mute all non-administrative members, or false to disable mute.

Code example

await OpenIM.iMManager.groupManager.changeGroupMute(
  groupID: groupID,
  mute: true,
);

Return value

A successful Future indicates that the mute request has been processed and saved by the server.

State changes after the call

Upon receiving the group profile change event, the client updates the group entity using groupID as the merge key. For listener integration, see Groups overview. To proactively verify the latest group state, invoke Get specified groups info.