From 9aa53aa3aa49447d475d35db37f4fb1dd6b6da58 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 26 Jun 2020 18:02:22 -0400 Subject: [PATCH] update lastSeen on reattach --- irc/getters.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/getters.go b/irc/getters.go index f74e5f7c..1ba2c97c 100644 --- a/irc/getters.go +++ b/irc/getters.go @@ -106,6 +106,7 @@ func (client *Client) AddSession(session *Session) (success bool, numSessions in newSessions[len(newSessions)-1] = session if client.accountSettings.AutoreplayMissed || session.deviceID != "" { lastSeen = client.lastSeen[session.deviceID] + client.setLastSeen(time.Now().UTC(), session.deviceID) } client.sessions = newSessions if client.autoAway {