From 950e6b7906726672af9f6f6167c9ac870e775f70 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 12 Oct 2023 10:40:51 +0800 Subject: [PATCH] fix: CallbackBeforeCreateGroup --- internal/rpc/group/callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/group/callback.go b/internal/rpc/group/callback.go index 6d92cfde2..38174738b 100644 --- a/internal/rpc/group/callback.go +++ b/internal/rpc/group/callback.go @@ -51,7 +51,7 @@ func CallbackBeforeCreateGroup(ctx context.Context, req *group.CreateGroupReq) ( RoleLevel: constant.GroupAdmin, }) } - for _, userID := range req.AdminUserIDs { + for _, userID := range req.MemberUserIDs { cbReq.InitMemberList = append(cbReq.InitMemberList, &apistruct.GroupAddMemberInfo{ UserID: userID, RoleLevel: constant.GroupOrdinaryUsers,