mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-30 05:19:28 -07:00
update lastSeen on reattach
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user