Failing test for unmuting microphone

This commit is contained in:
Conrad Irwin 2024-01-08 22:23:34 -07:00
parent 844d161c40
commit 8669b08161
3 changed files with 45 additions and 13 deletions

View file

@ -167,6 +167,10 @@ impl TestServer {
let identity = claims.sub.unwrap().to_string();
let room_name = claims.video.room.unwrap();
if claims.video.can_publish == Some(false) {
return Err(anyhow!("user is not allowed to publish"));
}
let mut server_rooms = self.rooms.lock();
let room = server_rooms
.get_mut(&*room_name)
@ -205,6 +209,10 @@ impl TestServer {
let identity = claims.sub.unwrap().to_string();
let room_name = claims.video.room.unwrap();
if claims.video.can_publish == Some(false) {
return Err(anyhow!("user is not allowed to publish"));
}
let mut server_rooms = self.rooms.lock();
let room = server_rooms
.get_mut(&*room_name)