# Rework call events api \(\#3038\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e9e558d8c850b70ba93481a491d8c8ac07383ddd

Requested commit: e9e558d8c850b70ba93481a491d8c8ac07383ddd

Commit: e9e558d8c850b70ba93481a491d8c8ac07383ddd

Tree: 3e73381976b5b1f22248d283a7e5ae6daca87ecb

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Rework call events api (#3038)

There were times when events with bad data were being emitted. What we
found was that places where certain collaboration-related code could
fail, like sending an invite, would still send events; those events
would be in a bad state, as certain elements, such as a room, weren't
constructed as expected, causing the event to have missing data. The new
API guarantees that we have data in the correct configuration. In the
future, we will add events for certain types of failures within Zed, to
cover things like invites failing.

Release Notes:

- N/A
```

## Parents

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

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

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