# Fix opening a buffer after leaving and joining the same project · gitcafe/zed

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

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

Visibility: public

Requested revision: 9adbab5d99f81025eda5469ed70cab0dd577eaee

Requested commit: 9adbab5d99f81025eda5469ed70cab0dd577eaee

Commit: 9adbab5d99f81025eda5469ed70cab0dd577eaee

Tree: 1335e6a957a5ed72ab91ab7594502251f75fcb97

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix opening a buffer after leaving and joining the same project

This bug existed prior to #1700 and was caused by not clearing the
buffers that were already shared with a peer that left and opened
a project using the same connection. When such peer would re-join
the project and open a buffer that it had opened previously, the
host assumed the peer had already seen that buffer and wouldn't bother
sending it again.

```

## Parents

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

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