From c0076e12024b66ff0e81f7dc18a25b21d2be9c00 Mon Sep 17 00:00:00 2001 From: hawklin2017 <32898629+hawklin2017@users.noreply.github.com> Date: Sun, 3 May 2026 17:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A5=BD=E5=8F=8B=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E9=80=9A=E7=9F=A5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/relation/friend.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/internal/rpc/relation/friend.go b/internal/rpc/relation/friend.go index 3c3c844e0..861ae1ecd 100644 --- a/internal/rpc/relation/friend.go +++ b/internal/rpc/relation/friend.go @@ -704,7 +704,17 @@ func (s *friendServer) AddOnewayFriend(ctx context.Context, req *relation.ApplyT // Silently notify only A (FromUserID) to trigger an incremental friend-list sync // so the remark is reflected in the conversation list. // B (ToUserID) receives no notification of any kind. - s.notificationSender.FriendAddedOnewayNotification(ctx, req.FromUserID, req.ToUserID) + //s.notificationSender.FriendAddedOnewayNotification(ctx, req.FromUserID, req.ToUserID) + + // Notify only A (FromUserID) so incremental friend sync is triggered + // without notifying B (ToUserID). + tips := sdkws.FriendApplicationApprovedTips{ + FromToUserID: &sdkws.FromToUserID{ + FromUserID: req.FromUserID, + ToUserID: req.ToUserID, + }, + } + s.notificationSender.Notification(ctx, req.FromUserID, req.FromUserID, constant.FriendApplicationApprovedNotification, &tips) return &relation.ApplyToAddFriendResp{}, nil }