This commit is contained in:
wangchuxiao 2022-12-05 16:44:46 +08:00
parent 7e428e8f94
commit 75629ba5ea

View File

@ -907,6 +907,7 @@ func (s *groupServer) GroupApplicationResponse(_ context.Context, req *pbGroup.G
c.ConversationType = int32(sessionType)
c.GroupID = req.GroupID
c.IsNotInGroup = false
c.UpdateUnreadCountTime = utils.GetCurrentTimestampByMill()
} else {
c.OwnerUserID = conversation.OwnerUserID
c.ConversationID = utils.GetConversationIDBySessionType(req.GroupID, sessionType)
@ -919,7 +920,6 @@ func (s *groupServer) GroupApplicationResponse(_ context.Context, req *pbGroup.G
c.GroupAtType = conversation.GroupAtType
c.IsNotInGroup = false
c.Ex = conversation.Ex
c.UpdateUnreadCountTime = utils.GetCurrentTimestampByMill()
}
reqPb.Conversation = &c
etcdConn := getcdv3.GetDefaultConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImUserName, req.OperationID)