Update channel rooms to be ephemeral
Remove redundant live kit initialization code Fix bug in recent channel links changes where channel rooms would have the incorrect release set co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
0e537cced4
commit
40430cf01b
11 changed files with 73 additions and 111 deletions
|
@ -91,9 +91,8 @@ impl TestServer {
|
|||
let identity = claims.sub.unwrap().to_string();
|
||||
let room_name = claims.video.room.unwrap();
|
||||
let mut server_rooms = self.rooms.lock();
|
||||
let room = server_rooms
|
||||
.get_mut(&*room_name)
|
||||
.ok_or_else(|| anyhow!("room {:?} does not exist", room_name))?;
|
||||
let room = (*server_rooms).entry(room_name.to_string()).or_default();
|
||||
|
||||
if room.client_rooms.contains_key(&identity) {
|
||||
Err(anyhow!(
|
||||
"{:?} attempted to join room {:?} twice",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue