forked from jmug/stoatchat
fix: dont set max participants in livekit
This commit is contained in:
@@ -95,15 +95,10 @@ impl VoiceClient {
|
|||||||
pub async fn create_room(&self, node: &str, channel: &Channel) -> Result<Room> {
|
pub async fn create_room(&self, node: &str, channel: &Channel) -> Result<Room> {
|
||||||
let room = self.get_node(node)?;
|
let room = self.get_node(node)?;
|
||||||
|
|
||||||
let voice = channel
|
|
||||||
.voice()
|
|
||||||
.ok_or_else(|| create_error!(NotAVoiceChannel))?;
|
|
||||||
|
|
||||||
room.client
|
room.client
|
||||||
.create_room(
|
.create_room(
|
||||||
channel.id(),
|
channel.id(),
|
||||||
CreateRoomOptions {
|
CreateRoomOptions {
|
||||||
max_participants: voice.max_users.unwrap_or(0) as u32,
|
|
||||||
empty_timeout: 5 * 60, // 5 minutes,
|
empty_timeout: 5 * 60, // 5 minutes,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user