|
|
|
@ -757,7 +757,7 @@ func (s *groupServer) GroupApplicationResponse(ctx context.Context, req *pbgroup
|
|
|
|
|
return nil, errs.ErrGroupRequestHandled.Wrap("group request already processed")
|
|
|
|
|
}
|
|
|
|
|
var inGroup bool
|
|
|
|
|
if _, takeErr := s.db.TakeGroupMember(ctx, req.GroupID, req.FromUserID); takeErr == nil {
|
|
|
|
|
if _, err := s.db.TakeGroupMember(ctx, req.GroupID, req.FromUserID); err == nil {
|
|
|
|
|
inGroup = true // Already in group
|
|
|
|
|
} else if !s.IsNotFound(err) {
|
|
|
|
|
return nil, err
|
|
|
|
|