From 5181897463648c892e785078ef207e487d4f580b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 10 Aug 2025 19:18:55 +0800 Subject: [PATCH] :bug: Fix message sync --- DysonNetwork.Sphere/Chat/ChatService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DysonNetwork.Sphere/Chat/ChatService.cs b/DysonNetwork.Sphere/Chat/ChatService.cs index 284a52b..7875c0c 100644 --- a/DysonNetwork.Sphere/Chat/ChatService.cs +++ b/DysonNetwork.Sphere/Chat/ChatService.cs @@ -290,6 +290,9 @@ public partial class ChatService( request.UserIds.AddRange(accountsToNotify.Select(a => a.Id.ToString())); await scopedNty.PushWebSocketPacketToUsersAsync(request); + accountsToNotify = accountsToNotify + .Where(a => a.Id != sender.AccountId.ToString()).ToList(); + logger.LogInformation($"Trying to deliver message to {accountsToNotify.Count} accounts..."); // Only send notifications if there are accounts to notify var ntyRequest = new SendPushNotificationToUsersRequest { Notification = notification };