3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 21:39:25 +01:00

update lastSeen on reattach

This commit is contained in:
Shivaram Lingamneni 2020-06-26 18:02:22 -04:00
parent d7a62223a0
commit 9aa53aa3aa

View File

@ -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 {