From 372e8fa06f94e200d2a03a20d1e8fe4df78c402a Mon Sep 17 00:00:00 2001 From: Donomii Date: Sat, 8 Jul 2017 16:01:21 +0000 Subject: [PATCH] "origin_server_ts" requires 64 bits Compile was failing on 32 bit linux --- events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events.go b/events.go index bc7b651..7427740 100644 --- a/events.go +++ b/events.go @@ -10,7 +10,7 @@ type Event struct { StateKey *string `json:"state_key,omitempty"` // The state key for the event. Only present on State Events. Sender string `json:"sender"` // The user ID of the sender of the event Type string `json:"type"` // The event type - Timestamp int `json:"origin_server_ts"` // The unix timestamp when this message was sent by the origin server + 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.