From f155b4e2acaec34e72fe75a1bab746b388b1e377 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 9 Jun 2025 01:27:46 +0800 Subject: [PATCH] :bug: Didn't deliver websocket packet to who send that message --- DysonNetwork.Sphere/Chat/ChatService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DysonNetwork.Sphere/Chat/ChatService.cs b/DysonNetwork.Sphere/Chat/ChatService.cs index 028a8c4..60743e4 100644 --- a/DysonNetwork.Sphere/Chat/ChatService.cs +++ b/DysonNetwork.Sphere/Chat/ChatService.cs @@ -114,14 +114,13 @@ public class ChatService( List accountsToNotify = []; foreach (var member in members) { - if (member.Account.Id == sender.AccountId) continue; - scopedWs.SendPacketToAccount(member.AccountId, new WebSocketPacket { Type = type, Data = message }); + if (member.Account.Id == sender.AccountId) continue; accountsToNotify.Add(member.Account); }