Merge 31cad7eb44d270caf59863581071424ddeea2c1c into b3427cc3964209254976537390d38eff2c880b1a

This commit is contained in:
OpenIM-Gordon 2026-10-10 20:43:14 +08:00 committed by GitHub
commit cb3dd16c9c
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 {