summaryrefslogtreecommitdiffstats
path: root/bridge/whatsapp/handlers.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-03-31 23:26:53 +0200
committerGitHub <noreply@github.com>2020-03-31 23:26:53 +0200
commit8d08e348a98ba59365b9d2146a95b0e45447ceb1 (patch)
tree403a1f1fe6f24f96a7abe47bb820f8d4426d8a4b /bridge/whatsapp/handlers.go
parenta18807f19e98c1f2cafddc28ab3f838b44b68fa1 (diff)
downloadmatterbridge-msglm-8d08e348a98ba59365b9d2146a95b0e45447ceb1.tar.gz
matterbridge-msglm-8d08e348a98ba59365b9d2146a95b0e45447ceb1.tar.bz2
matterbridge-msglm-8d08e348a98ba59365b9d2146a95b0e45447ceb1.zip
Reset start timestamp on reconnect (whatsapp). Fixes #1059 (#1064)
Diffstat (limited to 'bridge/whatsapp/handlers.go')
-rw-r--r--bridge/whatsapp/handlers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go
index eaa3f6f9..9a6e9d71 100644
--- a/bridge/whatsapp/handlers.go
+++ b/bridge/whatsapp/handlers.go
@@ -55,6 +55,7 @@ func (b *Bwhatsapp) reconnect(err error) {
err := b.conn.Restore()
if err == nil {
bf.Reset()
+ b.startedAt = uint64(time.Now().Unix())
return
}
}