🐛 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 = [];
|
List<Account.Account> accountsToNotify = [];
|
||||||
foreach (var member in members)
|
foreach (var member in members)
|
||||||
{
|
{
|
||||||
if (member.Account.Id == sender.AccountId) continue;
|
|
||||||
|
|
||||||
scopedWs.SendPacketToAccount(member.AccountId, new WebSocketPacket
|
scopedWs.SendPacketToAccount(member.AccountId, new WebSocketPacket
|
||||||
{
|
{
|
||||||
Type = type,
|
Type = type,
|
||||||
Data = message
|
Data = message
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (member.Account.Id == sender.AccountId) continue;
|
||||||
accountsToNotify.Add(member.Account);
|
accountsToNotify.Add(member.Account);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user