Commit 8ed55f36 by qlintonger xeno

移除idle消息类型+1

parent 53ff6796
...@@ -453,7 +453,7 @@ pub async fn handle_agora_call( ...@@ -453,7 +453,7 @@ pub async fn handle_agora_call(
} }
let users = ONLINE_USERS.iter() let users = ONLINE_USERS.iter()
.filter(|e| e.value().split(',').nth(CHANNEL_IDX).unwrap_or("") == channel_id && e.value().split(',').nth(STATUS_IDX).unwrap_or("") != "calling") .filter(|e| e.value().split(',').nth(CHANNEL_IDX).unwrap_or("") == channel_id)
.map(|e| e.key().clone()) .map(|e| e.key().clone())
.collect::<Vec<_>>(); .collect::<Vec<_>>();
for user_id in users { for user_id in users {
...@@ -467,7 +467,6 @@ pub async fn handle_agora_call( ...@@ -467,7 +467,6 @@ pub async fn handle_agora_call(
}).to_string(), &user_id).await; }).to_string(), &user_id).await;
} }
if real_host_id != user_id { if real_host_id != user_id {
// 修改状态数据
let joined = update_user_status( let joined = update_user_status(
&user_id, &user_id,
"calling", "calling",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment