summaryrefslogtreecommitdiffstats
path: root/vendor/go.mau.fi/whatsmeow/call.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/call.go')
-rw-r--r--vendor/go.mau.fi/whatsmeow/call.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/call.go b/vendor/go.mau.fi/whatsmeow/call.go
index e48e791c..f4de9bd8 100644
--- a/vendor/go.mau.fi/whatsmeow/call.go
+++ b/vendor/go.mau.fi/whatsmeow/call.go
@@ -7,8 +7,6 @@
package whatsmeow
import (
- "time"
-
waBinary "go.mau.fi/whatsmeow/binary"
"go.mau.fi/whatsmeow/types"
"go.mau.fi/whatsmeow/types/events"
@@ -26,7 +24,7 @@ func (cli *Client) handleCallEvent(node *waBinary.Node) {
cag := child.AttrGetter()
basicMeta := types.BasicCallMeta{
From: ag.JID("from"),
- Timestamp: time.Unix(ag.Int64("t"), 0),
+ Timestamp: ag.UnixTime("t"),
CallCreator: cag.JID("call-creator"),
CallID: cag.String("call-id"),
}