mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-03 22:08:04 +00:00 
			
		
		
		
	unrelated: Add PrevContent
This commit is contained in:
		
							parent
							
								
									dc3a2baaff
								
							
						
					
					
						commit
						fa4abd0af9
					
				
					 1 changed files with 10 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -13,9 +13,10 @@ type Event struct {
 | 
			
		|||
	Timestamp   int64                  `json:"origin_server_ts"`       // The unix timestamp when this message was sent by the origin server
 | 
			
		||||
	ID          string                 `json:"event_id"`               // The unique ID of this event
 | 
			
		||||
	RoomID      string                 `json:"room_id"`                // The room the event was sent to. May be nil (e.g. for presence)
 | 
			
		||||
	Content   map[string]interface{} `json:"content"`             // The JSON content of the event.
 | 
			
		||||
	Redacts     string                 `json:"redacts,omitempty"`      // The event ID that was redacted if a m.room.redaction event
 | 
			
		||||
	Unsigned    map[string]interface{} `json:"unsigned"`               // The unsigned portions of the event, such as age and prev_content
 | 
			
		||||
	Content     map[string]interface{} `json:"content"`                // The JSON content of the event.
 | 
			
		||||
	PrevContent map[string]interface{} `json:"prev_content,omitempty"` // The JSON prev_content of the event.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Body returns the value of the "body" key in the event content if it is
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue