mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	fix: message can store Ex (#2371)
(cherry picked from commit e6f1232582b0e7e01f5ca5594ae9d4c2c2948611)
This commit is contained in:
		
							parent
							
								
									2010aa3e8e
								
							
						
					
					
						commit
						9768ec1be7
					
				@ -101,6 +101,7 @@ func (m MessageApi) newUserSendMsgReq(_ *gin.Context, params *apistruct.SendMsg)
 | 
				
			|||||||
			SendTime:         params.SendTime,
 | 
								SendTime:         params.SendTime,
 | 
				
			||||||
			Options:          options,
 | 
								Options:          options,
 | 
				
			||||||
			OfflinePushInfo:  params.OfflinePushInfo,
 | 
								OfflinePushInfo:  params.OfflinePushInfo,
 | 
				
			||||||
 | 
								Ex:               params.Ex,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return &pbData
 | 
						return &pbData
 | 
				
			||||||
 | 
				
			|||||||
@ -55,6 +55,9 @@ type SendMsg struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// OfflinePushInfo contains information for offline push notifications.
 | 
						// OfflinePushInfo contains information for offline push notifications.
 | 
				
			||||||
	OfflinePushInfo *sdkws.OfflinePushInfo `json:"offlinePushInfo"`
 | 
						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.
 | 
					// 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