# Fix bugs in handling mutual following \(\#3091\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b77c815bcdcf41ee0ba028ccc1d86775b7870f1c

Requested commit: b77c815bcdcf41ee0ba028ccc1d86775b7870f1c

Commit: b77c815bcdcf41ee0ba028ccc1d86775b7870f1c

Tree: 68f4659216614e4aaca4736ba397b5212a103f65

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix bugs in handling mutual following (#3091)

This fixes some bugs in our following logic, due to our attempts to
prevent infinite loops when two people follow each other.

* Propagate all of leader's views to a new follower, even if those views
were originally created by that follower.
* Propagate active view changes to followers, even if the active view is
following that follower.
* Avoid redundant active view updates on the client.

Release Notes:

- Fixed bugs where it was impossible to follow someone into a view that
they previously following you into.
```

## Parents

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

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

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