forked from jmug/stoatchat
fix: dont set notification recipients when empty vec is passed
This commit is contained in:
@@ -103,7 +103,7 @@ pub async fn call(
|
||||
log::debug!("Created room {}", room.name);
|
||||
|
||||
if let Some(recipients) = recipients {
|
||||
if room.num_participants == 0 {
|
||||
if room.num_participants == 0 && !recipients.is_empty() {
|
||||
set_call_notification_recipients(channel.id(), &user.id, &recipients).await?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user