# Muting Channels

Muting a channel prevents it from triggering push notifications, unhiding, or incrementing the unread count for that user.

By default, mutes remain active indefinitely until removed. You can optionally set an expiration time. The list of muted channels and their expiration times is returned when the user connects.

## Mute a Channel

```cpp label="Unreal"
// mute channel for current user
Channel->Mute();

// mute a channel for 2 weeks
Channel->Mute({FTimespan::FromDays(15.)});

// mute a channel for 10 seconds
Channel->Mute({FTimespan::FromSeconds(10.)});

// check if channel is muted
Channel->IsMuted();
```

<Admonition type="info">

Messages added to muted channels do not increase the unread messages count.

</Admonition>

### Query Muted Channels

Muted channels can be filtered or excluded by using the `muted` in your query channels filter.

```cpp label="Unreal"
// retrieve all channels excluding muted ones
const FFilter NotMuted = FFilter::And({
  FFilter::In(TEXT("members"), {UserId}),
  FFilter::Equal(TEXT("muted"), false),
});
Client->QueryChannels(NotMuted);

// retrieve all muted channels
const FFilter Muted = FFilter::Equal(TEXT("muted"), true);
Client->QueryChannels(Muted);
```

### Remove a Channel Mute

Use the unmute method to restore normal notifications and unread behavior for a channel.

```cpp label="Unreal"
// unmute channel for current user
Channel->Unmute();
```


---

This page was last updated at 2026-08-11T17:19:24.381Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/unreal/muting-channels/](https://getstream.io/chat/docs/unreal/muting-channels/).