# useMutedUsers

Tracks the list of users muted by the current user. It initialises the list from the client and keeps it up to date by listening to `notification.mutes_updated` events.

## Best Practices

- Access the `mutedUsers` list through `useChatContext` instead.
- Treat the returned list as read-only; use the client methods `muteUser` and `unmuteUser` to modify mutes.
- Handle an empty muted users array gracefully.

## Usage

```tsx title="useMutedUsers.ts"
import { useMutedUsers } from "stream-chat-react-native";

const mutedUsers = useMutedUsers();

const isUserMuted = mutedUsers.some((mute) => mute.target.id === userId);
```

>
> **Note:** This hook is used internally by the `Chat` component. The `mutedUsers` list is available through the [`ChatContext`](https://getstream.io/chat/docs/sdk/react-native/contexts/chat-context/) via the `mutedUsers` property.
>

## Parameters

This hook takes no parameters. It reads the Stream Chat client from [`ChatContext`](https://getstream.io/chat/docs/sdk/react-native/contexts/chat-context/).

## Returns

| Type     | Description                                                  |
| -------- | ------------------------------------------------------------ |
| `Mute[]` | An array of mute objects for the current user's muted users. |

---

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/hooks/chat/use-muted-users/](https://getstream.io/chat/docs/sdk/react-native/hooks/chat/use-muted-users/).