# Add persistence to the \`Show Occupied Channels\` collab toggle \(\#53029\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/134dec8f95bf884db5e27270f9beabd00ef4132d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 134dec8f95bf884db5e27270f9beabd00ef4132d

Requested commit: 134dec8f95bf884db5e27270f9beabd00ef4132d

Commit: 134dec8f95bf884db5e27270f9beabd00ef4132d

Tree: 23399b0889a220bea645a6369a04027251147011

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Add persistence to the `Show Occupied Channels` collab toggle (#53029)

This PR adds persistence to the toggle state for the `Show Occupied
Channels` filter.

Also, while driving by, I:
- renamed a few variables to use `occupied` over `active`, which
should've happened in https://github.com/zed-industries/zed/pull/52531.
- extracted `"favorite_channels"` into a global

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [X] Unsafe blocks (if any) have justifying comments
- [X] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- Added persistence to the `Show Occupied Channels` collab toggle.
```

## Parents

- [d430cc5945f371ec87dd295d1f01dd840cbed3d8](https://git.cafe/gitcafe/zed/commit/d430cc5945f371ec87dd295d1f01dd840cbed3d8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/134dec8f95bf884db5e27270f9beabd00ef4132d?format=markdown)
