Merge 4d3e855bbfce4915baa675360ee0d242c31322df into 9502a1a15fe63f6342fb1e2d8068346a82f278d8

This commit is contained in:
OpenIM-Gordon 2026-11-01 08:31:55 -08:00 committed by GitHub
commit 9f8d4ac619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,7 +226,8 @@ func (f *friendDatabase) RefuseFriendRequest(ctx context.Context, friendRequest
"Arg_FriendRequest": friendRequest,
})
// Mark the friend request as refused and update the handle time.
// Mark the friend request as refused, record the operator, and update the handle time.
friendRequest.HandlerUserID = mcontext.GetOpUserID(ctx)
friendRequest.HandleResult = constant.FriendResponseRefuse
friendRequest.HandleTime = time.Now()
if err := f.friendRequest.Update(ctx, friendRequest); err != nil {