mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 18:34:29 +08:00
fix: remove unnecessary error handling to avoid sending nil resp.
This commit is contained in:
parent
29761497a8
commit
c1c732ff04
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user