Skip to content
Snippets Groups Projects
Commit 6a3d163b authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix group bindings timestamp MS functions

parent 4649c565
No related branches found
No related tags found
1 merge request!67Release
...@@ -20,7 +20,7 @@ update_release: ...@@ -20,7 +20,7 @@ update_release:
GOFLAGS="" go get gitlab.com/xx_network/primitives@release GOFLAGS="" go get gitlab.com/xx_network/primitives@release
GOFLAGS="" go get gitlab.com/elixxir/primitives@release GOFLAGS="" go get gitlab.com/elixxir/primitives@release
GOFLAGS="" go get gitlab.com/xx_network/crypto@release GOFLAGS="" go get gitlab.com/xx_network/crypto@release
GOFLAGS="" go get gitlab.com/elixxir/crypto@release GOFLAGS="" go get gitlab.com/elixxir/crypto@bob/FileTransfer
GOFLAGS="" go get gitlab.com/xx_network/comms@release GOFLAGS="" go get gitlab.com/xx_network/comms@release
GOFLAGS="" go get gitlab.com/elixxir/comms@release GOFLAGS="" go get gitlab.com/elixxir/comms@release
...@@ -34,4 +34,4 @@ update_master: ...@@ -34,4 +34,4 @@ update_master:
master: update_master clean build version master: update_master clean build version
release: update_release clean build version release: update_release clean build
...@@ -13,6 +13,7 @@ import ( ...@@ -13,6 +13,7 @@ import (
gs "gitlab.com/elixxir/client/groupChat/groupStore" gs "gitlab.com/elixxir/client/groupChat/groupStore"
"gitlab.com/elixxir/crypto/group" "gitlab.com/elixxir/crypto/group"
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
"time"
) )
// GroupChat object contains the group chat manager. // GroupChat object contains the group chat manager.
...@@ -291,7 +292,7 @@ func (gmr *GroupMessageReceive) GetTimestampNano() int64 { ...@@ -291,7 +292,7 @@ func (gmr *GroupMessageReceive) GetTimestampNano() int64 {
// GetTimestampMS returns the message timestamp in milliseconds. // GetTimestampMS returns the message timestamp in milliseconds.
func (gmr *GroupMessageReceive) GetTimestampMS() int64 { func (gmr *GroupMessageReceive) GetTimestampMS() int64 {
return gmr.Timestamp.UnixNano() / 1_000_000 return gmr.Timestamp.UnixNano() / int64(time.Millisecond)
} }
// GetRoundID returns the ID of the round the message was sent on. // GetRoundID returns the ID of the round the message was sent on.
...@@ -308,5 +309,5 @@ func (gmr *GroupMessageReceive) GetRoundTimestampNano() int64 { ...@@ -308,5 +309,5 @@ func (gmr *GroupMessageReceive) GetRoundTimestampNano() int64 {
// GetRoundTimestampMS returns the timestamp, in milliseconds, of the round the // GetRoundTimestampMS returns the timestamp, in milliseconds, of the round the
// message was sent on. // message was sent on.
func (gmr *GroupMessageReceive) GetRoundTimestampMS() int64 { func (gmr *GroupMessageReceive) GetRoundTimestampMS() int64 {
return gmr.RoundTimestamp.UnixNano() / 1_000_000 return gmr.RoundTimestamp.UnixNano() / int64(time.Millisecond)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment