🐛 Didn't deliver websocket packet to who send that message
This commit is contained in:
parent
877dd04b1f
commit
f155b4e2ac
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user