develop #3

Merged
wt merged 4 commits from develop into main 2025-11-28 18:21:44 +00:00
2 changed files with 2565 additions and 2259 deletions
Showing only changes of commit 941afa2485 - Show all commits

No files matched your search

+5 -3
View File
@@ -1374,9 +1374,11 @@ async fn handle_websocket(socket: WebSocket, state: Arc<AppState>) {
}
let users = recv_state.users.read().await;
if let Some(recipient_tx) = users.get(&chat_msg.to_user) {
let message_json = serde_json::to_string(&chat_msg).unwrap();
let _ = recipient_tx.send(Message::Text(message_json));
if chat_msg.to_user != chat_msg.from_user {
if let Some(recipient_tx) = users.get(&chat_msg.to_user) {
let message_json = serde_json::to_string(&chat_msg).unwrap();
let _ = recipient_tx.send(Message::Text(message_json));
}
}
if let Some(sender_tx) = users.get(&username) {
+2560 -2256
View File
File diff suppressed because it is too large. Load diff