Commit 6a44726f by qlintonger xeno

阐释添加额外消息发送+2

parent 717921fb
......@@ -70,8 +70,7 @@ pub async fn handle_ws_msg(
for entry in ONLINE_USERS.iter() {
let target_id = entry.key();
let target_data = entry.value();
if target_data.split(',').nth(1).unwrap_or("") == channel_id
&& target_id != &from_id {
if target_data.split(',').nth(1).unwrap_or("") == channel_id {
if let Some(sender) = CLIENT_SENDERS.iter()
.find(|e| e.key().0 == *target_id)
.map(|e| e.key().clone()) {
......
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