summaryrefslogtreecommitdiffstats
path: root/vendor/go.mau.fi/whatsmeow/presence.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/presence.go')
-rw-r--r--vendor/go.mau.fi/whatsmeow/presence.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/presence.go b/vendor/go.mau.fi/whatsmeow/presence.go
index 8de1969a..2943c7da 100644
--- a/vendor/go.mau.fi/whatsmeow/presence.go
+++ b/vendor/go.mau.fi/whatsmeow/presence.go
@@ -8,7 +8,6 @@ package whatsmeow
import (
"sync/atomic"
- "time"
waBinary "go.mau.fi/whatsmeow/binary"
"go.mau.fi/whatsmeow/types"
@@ -48,7 +47,7 @@ func (cli *Client) handlePresence(node *waBinary.Node) {
}
lastSeen := ag.OptionalString("last")
if lastSeen != "" && lastSeen != "deny" {
- evt.LastSeen = time.Unix(ag.Int64("last"), 0)
+ evt.LastSeen = ag.UnixTime("last")
}
if !ag.OK() {
cli.Log.Warnf("Error parsing presence event: %+v", ag.Errors)