From 96321a24694f8cb133367043774a68c989e691f7 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 27 Mar 2023 10:42:24 +0800 Subject: [PATCH] group --- internal/rpc/group/group.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index 6889d9bb0..42fd892cb 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -688,6 +688,10 @@ func (s *groupServer) QuitGroup(ctx context.Context, req *pbGroup.QuitGroupReq) if err != nil { return nil, err } + err = s.GroupDatabase.DeleteGroupMember(ctx, req.GroupID, []string{mcontext.GetOpUserID(ctx)}) + if err != nil { + return nil, err + } s.Notification.MemberQuitNotification(ctx, req) } return resp, nil