# Allow following participants who aren't in the same project \(\#2993\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f011a3df52c928b8ce56f1bc0579665b0deabf3b

Requested commit: f011a3df52c928b8ce56f1bc0579665b0deabf3b

Commit: f011a3df52c928b8ce56f1bc0579665b0deabf3b

Tree: 5b3c839168fd76f1b0a385e09ba0766801317d8e

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Allow following participants who aren't in the same project (#2993)

The goal of this PR is to make Following more intuitive.

### Old Behavior

Previously, following was scoped to a project. In order to follow
someone in a given window, the window needed to contain a shared
project, and the leader needed to be present in the project. Otherwise,
following failed.

### New Behavior

* You can always follow **any** participant in the current call, in any
pane of any window.
* When following someone in a project that you're both collaborating in,
it works the same as before.
* When following someone in an unshared project, or a project that they
don't have open, you'll only get updates about the leader's views that
don't belong to a project, such as channel notes views. When the leader
focuses a file in a different project, you'll get the "follow $LEADER to
their active project" indicator

### Todo

* [x] Change db schema and RPC protocol so a project id isn't required
for following
* [x] Change client to allow following into non-project items regardless
of the leader's project
* [x] Assign colors to users in a way that doesn't require users to be
in a shared project.
```

## Parents

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

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

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