forked from jmug/stoatchat
chore: bump livekit dep
This commit is contained in:
@@ -103,6 +103,6 @@ authifier = { version = "1.0.15", features = ["rocket_impl"] }
|
|||||||
amqprs = { version = "1.7.0" }
|
amqprs = { version = "1.7.0" }
|
||||||
|
|
||||||
# Voice
|
# Voice
|
||||||
livekit-api = "0.4.1"
|
livekit-api = "0.4.4"
|
||||||
livekit-protocol = "0.3.6"
|
livekit-protocol = "0.4.0"
|
||||||
livekit-runtime = { version = "0.3.1", features = ["tokio"] }
|
livekit-runtime = { version = "0.3.1", features = ["tokio"] }
|
||||||
|
|||||||
@@ -40,9 +40,7 @@ pub async fn set_channel_node(channel: &str, node: &str) -> Result<()> {
|
|||||||
.await?
|
.await?
|
||||||
.set(format!("node:{channel}"), node)
|
.set(format!("node:{channel}"), node)
|
||||||
.await
|
.await
|
||||||
.to_internal_error()?;
|
.to_internal_error()
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_channel_node(channel: &str) -> Result<Option<String>> {
|
pub async fn get_channel_node(channel: &str) -> Result<Option<String>> {
|
||||||
@@ -144,7 +142,7 @@ pub async fn create_voice_state(
|
|||||||
voice_state.screensharing,
|
voice_state.screensharing,
|
||||||
)
|
)
|
||||||
.set(format!("camera:{unique_key}"), voice_state.camera)
|
.set(format!("camera:{unique_key}"), voice_state.camera)
|
||||||
.query_async(&mut get_connection().await?.into_inner())
|
.query_async::<_, ()>(&mut get_connection().await?.into_inner())
|
||||||
.await
|
.await
|
||||||
.to_internal_error()?;
|
.to_internal_error()?;
|
||||||
|
|
||||||
@@ -170,9 +168,7 @@ pub async fn delete_voice_state(
|
|||||||
])
|
])
|
||||||
.query_async(&mut get_connection().await?.into_inner())
|
.query_async(&mut get_connection().await?.into_inner())
|
||||||
.await
|
.await
|
||||||
.to_internal_error()?;
|
.to_internal_error()
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn update_voice_state_tracks(
|
pub async fn update_voice_state_tracks(
|
||||||
@@ -236,9 +232,7 @@ pub async fn update_voice_state(
|
|||||||
pipeline
|
pipeline
|
||||||
.query_async(&mut get_connection().await?.into_inner())
|
.query_async(&mut get_connection().await?.into_inner())
|
||||||
.await
|
.await
|
||||||
.to_internal_error()?;
|
.to_internal_error()
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_voice_channel_members(channel_id: &str) -> Result<Option<Vec<String>>> {
|
pub async fn get_voice_channel_members(channel_id: &str) -> Result<Option<Vec<String>>> {
|
||||||
@@ -322,9 +316,7 @@ pub async fn move_user(user: &str, from: &str, to: &str) -> Result<()> {
|
|||||||
user,
|
user,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.to_internal_error()?;
|
.to_internal_error()
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn sync_voice_permissions(db: &Database, voice_client: &VoiceClient, channel: &Channel, server: Option<&Server>, role_id: Option<&str>) -> Result<()> {
|
pub async fn sync_voice_permissions(db: &Database, voice_client: &VoiceClient, channel: &Channel, server: Option<&Server>, role_id: Option<&str>) -> Result<()> {
|
||||||
|
|||||||
@@ -39,6 +39,6 @@ revolt-database = { path = "../../core/database" }
|
|||||||
revolt-permissions = { path = "../../core/permissions" }
|
revolt-permissions = { path = "../../core/permissions" }
|
||||||
|
|
||||||
# voice
|
# voice
|
||||||
livekit-api = "0.4.1"
|
livekit-api = "0.4.4"
|
||||||
livekit-protocol = "0.3.6"
|
livekit-protocol = "0.4.0"
|
||||||
livekit-runtime = { version = "0.3.1", features = ["tokio"] }
|
livekit-runtime = { version = "0.3.1", features = ["tokio"] }
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ revolt-result = { path = "../core/result", features = ["rocket", "okapi"] }
|
|||||||
revolt-permissions = { path = "../core/permissions", features = ["schemas"] }
|
revolt-permissions = { path = "../core/permissions", features = ["schemas"] }
|
||||||
|
|
||||||
# voice
|
# voice
|
||||||
livekit-api = "0.4.1"
|
livekit-api = "0.4.4"
|
||||||
livekit-protocol = "0.3.6"
|
livekit-protocol = "0.4.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
vergen = "7.5.0"
|
vergen = "7.5.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user