|
@@ -106,6 +106,7 @@ func (client *Client) AddSession(session *Session) (success bool, numSessions in
|
106
|
106
|
newSessions[len(newSessions)-1] = session
|
107
|
107
|
if client.accountSettings.AutoreplayMissed || session.deviceID != "" {
|
108
|
108
|
lastSeen = client.lastSeen[session.deviceID]
|
|
109
|
+ client.setLastSeen(time.Now().UTC(), session.deviceID)
|
109
|
110
|
}
|
110
|
111
|
client.sessions = newSessions
|
111
|
112
|
if client.autoAway {
|