Compare commits

..

1 Commits

Author SHA1 Message Date
神奇bug在哪里
6ce347b23e
Merge 203cdb532a16d87a0276c72e58d9599f75a65bfd into 7d5e4a21962f84e036706f8f8166adda9da7ff45 2026-01-23 03:40:48 +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{