Skip to main content
Content moderation in the Chat SDK is built from specific client actions: users can flag messages, apps can render flag state from message models, messages can be edited or soft-deleted where supported, and moderators can use channel governance APIs for roles, bans, and mutes. Keep review policy, escalation rules, audit notes, and compliance workflows in your own product or backend. The SDK supplies the client-side actions and state needed to connect those workflows to chat.

Capability Map

CapabilityUse it forSDK page
Flag a messageLet a signed-in user report a message with a reason.Message Flagging
Unflag a messageLet the current user remove their own report.Message Flagging
Read flag stateShow whether the current user has already flagged a fetched message.Message Flagging
Edit or delete messagesUpdate supported message types or soft-delete messages.Edit & Delete Messages
Query deleted stateInclude or exclude deleted messages where the platform exposes the filter.Query Messages
Channel governanceManage members, roles, bans, and mutes for channel-level enforcement.Channel Governance

Platform Surface

SurfaceTypeScriptiOSAndroidFlutter
Flag with reasonSupportedSupportedSupportedSupported
UnflagSupportedSupportedSupportedSupported
Check current user’s flag stateSupportedSupportedSupported on fetched messageSupported on fetched message
Soft-delete messagesSupportedSupportedSupportedSupported
Query deleted messagesSupportedSupportedSupportedSupported
Channel bans and mutesSupportedSupportedSupportedSupported

Moderation Flow

Collect a report

Call the platform flag API with the message ID and reason selected in your UI.

Refresh message state

Re-read or observe the message when the UI needs current flag, deletion, reaction, or receipt state.

Hide removed content

Treat soft-deleted messages as deleted in your renderer and avoid showing original content.

Enforce at channel level

Use role, ban, mute, and member APIs when moderation affects participation rather than a single message.

Product Boundaries

ConcernSDK surfaceProduct or backend responsibility
User reportMessage flag and unflag APIs.Report form copy, reason taxonomy, abuse policy, and user messaging.
Message visibilityMessage delete state and deleted-message query filters.Renderer behavior, placeholders, audit copies, and moderator review screens.
User enforcementChannel role, ban, mute, and member APIs.Appeals, staff permissions, case notes, and cross-channel policy.
AutomationClient-visible state after moderation actions.Automated classifiers, review queues, escalation, and compliance exports.

Message Flagging

Flag, unflag, and read the current user’s flag state.

Edit & Delete Messages

Update or soft-delete supported message types.

Ban Management

Prevent users from participating in a channel until unbanned.