Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao
2023-04-19 15:12:18 +08:00
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -634,7 +634,7 @@ func (s *groupServer) JoinGroup(ctx context.Context, req *pbGroup.JoinGroupReq)
_, err = s.GroupDatabase.TakeGroupMember(ctx, req.GroupID, req.InviterUserID)
if err == nil {
return nil, errs.ErrArgs.Wrap("already in group")
} else if !s.IsNotFound(err) {
} else if !s.IsNotFound(err) && utils.Unwrap(err) != errs.ErrRecordNotFound {
return nil, err
}
resp = &pbGroup.JoinGroupResp{}