🐛 Didn't deliver websocket packet to who send that message

This commit is contained in:
LittleSheep 2025-06-09 01:27:46 +08:00
parent 877dd04b1f
commit f155b4e2ac

View File

@ -114,14 +114,13 @@ public class ChatService(
List<Account.Account> 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);
}