mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	fix: message can store Ex
This commit is contained in:
		
							parent
							
								
									d6606152ee
								
							
						
					
					
						commit
						be62b37436
					
				@ -101,6 +101,7 @@ func (m MessageApi) newUserSendMsgReq(_ *gin.Context, params *apistruct.SendMsg)
 | 
			
		||||
			SendTime:         params.SendTime,
 | 
			
		||||
			Options:          options,
 | 
			
		||||
			OfflinePushInfo:  params.OfflinePushInfo,
 | 
			
		||||
			Ex:               params.Ex,
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	return &pbData
 | 
			
		||||
 | 
			
		||||
@ -55,6 +55,9 @@ type SendMsg struct {
 | 
			
		||||
 | 
			
		||||
	// OfflinePushInfo contains information for offline push notifications.
 | 
			
		||||
	OfflinePushInfo *sdkws.OfflinePushInfo `json:"offlinePushInfo"`
 | 
			
		||||
 | 
			
		||||
	// Ex stores extended fields
 | 
			
		||||
	Ex string `json:"ex"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SendMsgReq extends SendMsg with the requirement of RecvID when SessionType indicates a one-on-one or notification chat.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user