From 3dc939034fdb39b0fc33eadf888424f175bea228 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 28 Dec 2023 18:20:17 +0800 Subject: [PATCH] update --- internal/logic/app/group_app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/logic/app/group_app.go b/internal/logic/app/group_app.go index c3f3e00..8ffcbfc 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -202,6 +202,9 @@ func (*groupApp) DeleteMember(ctx context.Context, groupId int64, userId int64, return err } + if userId == optId { //自己退出群聊,无需发送消息 + return nil + } err = group.PushDeleteMember(ctx, optId, userId) if err != nil { return err