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