From c0c4ba21a8e53547385b403906d48e4378a809e5 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Wed, 12 Mar 2025 11:38:18 +0800 Subject: [PATCH] fix: solve unocrrect invite notification (#3213) --- internal/rpc/group/group.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index 0a877a03e..e1604e7e5 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -390,6 +390,8 @@ func (g *groupServer) InviteUserToGroup(ctx context.Context, req *pbgroup.Invite if err := g.PopulateGroupMember(ctx, groupMember); err != nil { return nil, err } + } else { + opUserID = mcontext.GetOpUserID(ctx) } if err := g.webhookBeforeInviteUserToGroup(ctx, &g.config.WebhooksConfig.BeforeInviteUserToGroup, req); err != nil && err != servererrs.ErrCallbackContinue { @@ -425,6 +427,7 @@ func (g *groupServer) InviteUserToGroup(ctx context.Context, req *pbgroup.Invite } } } + var groupMembers []*model.GroupMember for _, userID := range req.InvitedUserIDs { member := &model.GroupMember{