Ver código fonte

update lastSeen on reattach

tags/v2.2.0-rc1
Shivaram Lingamneni 3 anos atrás
pai
commit
9aa53aa3aa
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      irc/getters.go

+ 1
- 0
irc/getters.go Ver arquivo

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

Carregando…
Cancelar
Salvar