SDKsFlutter
Mute or unmute a group member
Mute or unmute a specified group member with the OpenIM Flutter SDK.
changeGroupMemberMute() changes the mute end time of one member in a target group.
await OpenIM.iMManager.groupManager.changeGroupMemberMute(
groupID: groupID,
userID: targetUserID,
seconds: 3600,
);groupID and userID locate the member, while seconds is the mute duration from the current time. Pass 0 to unmute.
A successful Future means that the server completed the setting. Relevant clients may then receive a new muteEndTime through a member-profile change event. It is a timestamp in seconds; merge it by groupID:userID. See Group member queries overview.
Was this page helpful?