mirror of
https://github.com/status-im/status-go.git
synced 2025-02-18 01:37:22 +00:00
fix: timestamp conversion from uint64
This commit is contained in:
parent
598b83757c
commit
0b1c06403b
@ -5,6 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/status-im/go-waku/waku/v2/node"
|
"github.com/status-im/go-waku/waku/v2/node"
|
||||||
"github.com/status-im/go-waku/waku/v2/protocol"
|
"github.com/status-im/go-waku/waku/v2/protocol"
|
||||||
@ -225,7 +226,7 @@ func (msg *ReceivedMessage) Open(watcher *Filter) (result *ReceivedMessage) {
|
|||||||
result.Signature = raw.Signature
|
result.Signature = raw.Signature
|
||||||
result.Src = raw.PubKey
|
result.Src = raw.PubKey
|
||||||
|
|
||||||
result.Sent = uint32(msg.Envelope.Message().Timestamp)
|
result.Sent = uint32(msg.Envelope.Message().Timestamp / int64(time.Second))
|
||||||
result.Topic = StringToTopic(msg.Envelope.Message().ContentTopic)
|
result.Topic = StringToTopic(msg.Envelope.Message().ContentTopic)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user