From e83a070e81bf8beb37993b9710657e5447a1e0dd Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 14 Feb 2023 16:37:10 +0800 Subject: [PATCH] group --- internal/rpc/group/group.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index b116f833f..55e6d90fd 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -84,35 +84,6 @@ func (s *groupServer) GetUsernameMap(ctx context.Context, userIDs []string, comp }), nil } -func (s *groupServer) GroupNotification(ctx context.Context, groupID string, userIDs []string) { - - s.ConversationChecker.ModifyConversationField(ctx, &pbConversation.ModifyConversationFieldReq{ - Conversation: &pbConversation.Conversation{ - OwnerUserID: tracelog.GetOpUserID(ctx), - ConversationID: utils.GetConversationIDBySessionType(groupID, constant.GroupChatType), - ConversationType: constant.GroupChatType, - GroupID: groupID, - }, - FieldType: constant.FieldGroupAtType, - UserIDList: userIDs, - }) - - // todo 群公告修改通知 - //var conversationReq pbConversation.ModifyConversationFieldReq - //conversation := pbConversation.Conversation{ - // OwnerUserID: tracelog.GetOpUserID(ctx), - // ConversationID: utils.GetConversationIDBySessionType(groupID, constant.GroupChatType), - // ConversationType: constant.GroupChatType, - // GroupID: groupID, - //} - //conversationReq.Conversation = &conversation - //conversationReq.FieldType = constant.FieldGroupAtType - //conversation.GroupAtType = constant.GroupNotification - //conversationReq.UserIDList = userIDs - //_, err := pbConversation.NewConversationClient(s.etcdConn.GetConn("", config.Config.RpcRegisterName.OpenImConversationName)).ModifyConversationField(ctx, &conversationReq) - //tracelog.SetCtxInfo(ctx, "ModifyConversationField", err, "req", &conversationReq, "resp", conversationReply) -} - func (s *groupServer) IsNotFound(err error) bool { return utils.Unwrap(err) == gorm.ErrRecordNotFound }