fix: remove VoiceChannel channel type
fix: calculate user overwrites correctly fix: dont include personal info in livekit user metadata fix: revoke video permissons on denied publish fix: add video to default permissions
This commit is contained in:
@@ -67,7 +67,7 @@ impl ApnsOutboundConsumer {
|
||||
match ¬ification.channel {
|
||||
Channel::DirectMessage { .. } => notification.author.clone(),
|
||||
Channel::Group { name, .. } => format!("{}, #{}", notification.author, name),
|
||||
Channel::TextChannel { name, .. } | Channel::VoiceChannel { name, .. } => {
|
||||
Channel::TextChannel { name, .. } => {
|
||||
format!("{} in #{}", notification.author, name)
|
||||
}
|
||||
_ => "Unknown".to_string(),
|
||||
|
||||
@@ -31,7 +31,7 @@ impl FcmOutboundConsumer {
|
||||
match ¬ification.channel {
|
||||
Channel::DirectMessage { .. } => notification.author.clone(),
|
||||
Channel::Group { name, .. } => format!("{}, #{}", notification.author, name),
|
||||
Channel::TextChannel { name, .. } | Channel::VoiceChannel { name, .. } => {
|
||||
Channel::TextChannel { name, .. } => {
|
||||
format!("{} in #{}", notification.author, name)
|
||||
}
|
||||
_ => "Unknown".to_string(),
|
||||
|
||||
@@ -59,7 +59,7 @@ pub async fn ingress(
|
||||
let channel_id = channel_id.to_internal_error()?;
|
||||
let user_id = user_id.to_internal_error()?;
|
||||
|
||||
let channel = Reference::from_unchecked(&channel_id)
|
||||
let channel = Reference::from_unchecked(channel_id)
|
||||
.as_channel(db)
|
||||
.await?;
|
||||
|
||||
@@ -86,7 +86,7 @@ pub async fn ingress(
|
||||
|
||||
// First user who joined - send call started system message.
|
||||
if event.room.as_ref().unwrap().num_participants == 1 {
|
||||
let user = Reference::from_unchecked(&user_id)
|
||||
let user = Reference::from_unchecked(user_id)
|
||||
.as_user(db)
|
||||
.await?;
|
||||
|
||||
@@ -120,7 +120,7 @@ pub async fn ingress(
|
||||
let channel_id = channel_id.to_internal_error()?;
|
||||
let user_id = user_id.to_internal_error()?;
|
||||
|
||||
let channel = Reference::from_unchecked(&channel_id)
|
||||
let channel = Reference::from_unchecked(channel_id)
|
||||
.as_channel(db)
|
||||
.await?;
|
||||
|
||||
@@ -179,11 +179,11 @@ pub async fn ingress(
|
||||
let user_id = user_id.to_internal_error()?;
|
||||
let track = event.track.as_ref().to_internal_error()?;
|
||||
|
||||
let channel = Reference::from_unchecked(&channel_id)
|
||||
let channel = Reference::from_unchecked(channel_id)
|
||||
.as_channel(db)
|
||||
.await?;
|
||||
|
||||
let user = Reference::from_unchecked(&user_id)
|
||||
let user = Reference::from_unchecked(user_id)
|
||||
.as_user(db)
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user