Compare commits

..

1 Commits

Author SHA1 Message Date
神奇bug在哪里
2e7125569a
Merge 6f15f072d09c89815f24f7103918091d16fa8105 into 7d5e4a21962f84e036706f8f8166adda9da7ff45 2026-02-06 08:09:14 +00:00
2 changed files with 3 additions and 5 deletions

View File

@ -1207,10 +1207,9 @@ func (s *groupServer) SetGroupInfoEx(ctx context.Context, req *pbgroup.SetGroupI
log.ZWarn(ctx, "GetGroupMemberIDs is failed.", err)
return nil, err
}
// use temp admin permission to force success.
adminCtx := mcontext.WithOpUserIDContext(ctx, s.config.Share.IMAdminUserID[0])
conversation.GroupAtType = &wrapperspb.Int32Value{Value: constant.GroupNotification}
if err := s.conversationClient.SetConversations(adminCtx, resp.UserIDs, conversation); err != nil {
if err := s.conversationClient.SetConversations(ctx, resp.UserIDs, conversation); err != nil {
log.ZWarn(ctx, "SetConversations", err, "UserIDs", resp.UserIDs, "conversation", conversation)
}

View File

@ -87,9 +87,8 @@ func (m *msgServer) setConversationAtInfo(nctx context.Context, msg *sdkws.MsgDa
}
}()
// template admin permission for next operation
ctx := mcontext.NewCtx("@@@" + mcontext.GetOperationID(nctx))
ctx = mcontext.WithOpUserIDContext(ctx, m.config.Share.IMAdminUserID[0])
var atUserID []string
conversation := &pbconversation.ConversationReq{