useMutedUsers

Returns the current list of muted users from the client state store.

Best Practices

  • Use this hook to support direct-chat mute and moderation UI.
  • Handle undefined values during initialization states.
  • Avoid duplicating mute-user event subscriptions in list components.
  • Keep lookups optimized when checking mute state repeatedly.
  • Pair with useChannelMuteActive for per-channel mute display logic.

Usage

import { useMutedUsers } from "stream-chat-react-native";

const mutedUsers = useMutedUsers() ?? [];

Parameters

Name Type Required Description
channel Channel No Deprecated. No longer necessary and kept for backwards compatibility only. Call useMutedUsers() with no arguments.

Returns

Type Description
Mute[] | undefined List of muted users for the client.
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v9: <Your Question>