mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:59:53 +00:00
💄
This commit is contained in:
parent
6fb5901d69
commit
251e06c50f
1 changed files with 2 additions and 4 deletions
|
@ -97,14 +97,12 @@ impl Room {
|
||||||
|
|
||||||
match room
|
match room
|
||||||
.update(&mut cx, |room, cx| {
|
.update(&mut cx, |room, cx| {
|
||||||
|
room.leave_when_empty = true;
|
||||||
room.call(recipient_user_id, initial_project_id, cx)
|
room.call(recipient_user_id, initial_project_id, cx)
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(()) => {
|
Ok(()) => Ok(room),
|
||||||
room.update(&mut cx, |room, _| room.leave_when_empty = true);
|
|
||||||
Ok(room)
|
|
||||||
}
|
|
||||||
Err(error) => Err(anyhow!("room creation failed: {:?}", error)),
|
Err(error) => Err(anyhow!("room creation failed: {:?}", error)),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue