forked from External/ergo
update lastSeen on reattach
This commit is contained in:
parent
d7a62223a0
commit
9aa53aa3aa
1 changed files with 1 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ func (client *Client) AddSession(session *Session) (success bool, numSessions in
|
||||||
newSessions[len(newSessions)-1] = session
|
newSessions[len(newSessions)-1] = session
|
||||||
if client.accountSettings.AutoreplayMissed || session.deviceID != "" {
|
if client.accountSettings.AutoreplayMissed || session.deviceID != "" {
|
||||||
lastSeen = client.lastSeen[session.deviceID]
|
lastSeen = client.lastSeen[session.deviceID]
|
||||||
|
client.setLastSeen(time.Now().UTC(), session.deviceID)
|
||||||
}
|
}
|
||||||
client.sessions = newSessions
|
client.sessions = newSessions
|
||||||
if client.autoAway {
|
if client.autoAway {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue