diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index a57148b1e..e43732091 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -89,7 +89,7 @@ func (s *groupServer) GetUsernameMap(ctx context.Context, userIDs []string, comp } func (s *groupServer) IsNotFound(err error) bool { - return errs.ErrRecordNotFound.Is(specialerror.ErrCode(err)) + return errs.ErrRecordNotFound.Is(specialerror.ErrCode(errs.Unwrap(err))) } func (s *groupServer) GenGroupID(ctx context.Context, groupID *string) error {