# Avoid creating more than one room when inviting multiple people at once · gitcafe/zed

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

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

Visibility: public

Requested revision: 7be868e3726c268c0d7cfc01dabd2687e0951dbc

Requested commit: 7be868e3726c268c0d7cfc01dabd2687e0951dbc

Commit: 7be868e3726c268c0d7cfc01dabd2687e0951dbc

Tree: 78b6720761fdcebfe9ecd2a775e0ffabc145b849

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Avoid creating more than one room when inviting multiple people at once

Previously, when initiating a call by calling multiple people, only
the first person would get the call while all the others would briefly
show a "pending" status but never get the call.

This would happen because `ActiveCall` was trying to a create a different
room for each person called, because the original room creation hadn't finished
and so a `ModelHandle<Room>` wasn't being store in the active call.

With this commit, only one room can be created at any given time and further
invites have to wait until that room creation is done.

```

## Parents

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

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