mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	feat: add a function for business info change to update related conversation's ex info.
This commit is contained in:
		
							parent
							
								
									9f0201b823
								
							
						
					
					
						commit
						b0a07b5650
					
				| @ -48,7 +48,3 @@ func (m *MsgNotificationSender) MarkAsReadNotification(ctx context.Context, conv | |||||||
| 	} | 	} | ||||||
| 	m.NotificationWithSessionType(ctx, sendID, recvID, constant.HasReadReceipt, sessionType, tips) | 	m.NotificationWithSessionType(ctx, sendID, recvID, constant.HasReadReceipt, sessionType, tips) | ||||||
| } | } | ||||||
| 
 |  | ||||||
| func (m *MsgNotificationSender) StreamMsgNotification(ctx context.Context, sendID string, recvID string, sessionType int32, tips *sdkws.StreamMsgTips) { |  | ||||||
| 	m.NotificationWithSessionType(ctx, sendID, recvID, constant.StreamMsgNotification, sessionType, tips) |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -59,9 +59,8 @@ type Config struct { | |||||||
| // MsgServer encapsulates dependencies required for message handling. | // MsgServer encapsulates dependencies required for message handling. | ||||||
| type msgServer struct { | type msgServer struct { | ||||||
| 	msg.UnimplementedMsgServer | 	msg.UnimplementedMsgServer | ||||||
| 	RegisterCenter         discovery.Conn               // Service discovery registry for service registration. | 	RegisterCenter         discovery.Conn                   // Service discovery registry for service registration. | ||||||
| 	MsgDatabase            controller.CommonMsgDatabase // Interface for message database operations. | 	MsgDatabase            controller.CommonMsgDatabase     // Interface for message database operations. | ||||||
| 	StreamMsgDatabase      controller.StreamMsgDatabase |  | ||||||
| 	UserLocalCache         *rpccache.UserLocalCache         // Local cache for user data. | 	UserLocalCache         *rpccache.UserLocalCache         // Local cache for user data. | ||||||
| 	FriendLocalCache       *rpccache.FriendLocalCache       // Local cache for friend data. | 	FriendLocalCache       *rpccache.FriendLocalCache       // Local cache for friend data. | ||||||
| 	GroupLocalCache        *rpccache.GroupLocalCache        // Local cache for group data. | 	GroupLocalCache        *rpccache.GroupLocalCache        // Local cache for group data. | ||||||
| @ -117,10 +116,6 @@ func Start(ctx context.Context, config *Config, client discovery.Conn, server gr | |||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} | ||||||
| 	streamMsg, err := mgo.NewStreamMsgMongo(mgocli.GetDB()) |  | ||||||
| 	if err != nil { |  | ||||||
| 		return err |  | ||||||
| 	} |  | ||||||
| 	seqUserCache := redis.NewSeqUserCacheRedis(rdb, seqUser) | 	seqUserCache := redis.NewSeqUserCacheRedis(rdb, seqUser) | ||||||
| 	userConn, err := client.GetConn(ctx, config.Discovery.RpcService.User) | 	userConn, err := client.GetConn(ctx, config.Discovery.RpcService.User) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| @ -142,7 +137,6 @@ func Start(ctx context.Context, config *Config, client discovery.Conn, server gr | |||||||
| 	msgDatabase := controller.NewCommonMsgDatabase(msgDocModel, msgModel, seqUserCache, seqConversationCache, redisProducer) | 	msgDatabase := controller.NewCommonMsgDatabase(msgDocModel, msgModel, seqUserCache, seqConversationCache, redisProducer) | ||||||
| 	s := &msgServer{ | 	s := &msgServer{ | ||||||
| 		MsgDatabase:            msgDatabase, | 		MsgDatabase:            msgDatabase, | ||||||
| 		StreamMsgDatabase:      controller.NewStreamMsgDatabase(streamMsg), |  | ||||||
| 		RegisterCenter:         client, | 		RegisterCenter:         client, | ||||||
| 		UserLocalCache:         rpccache.NewUserLocalCache(rpcli.NewUserClient(userConn), &config.LocalCacheConfig, rdb), | 		UserLocalCache:         rpccache.NewUserLocalCache(rpcli.NewUserClient(userConn), &config.LocalCacheConfig, rdb), | ||||||
| 		GroupLocalCache:        rpccache.NewGroupLocalCache(rpcli.NewGroupClient(groupConn), &config.LocalCacheConfig, rdb), | 		GroupLocalCache:        rpccache.NewGroupLocalCache(rpcli.NewGroupClient(groupConn), &config.LocalCacheConfig, rdb), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user