1
0
Fork 0
forked from External/ergo

simplify lastSeen handling

This commit is contained in:
Shivaram Lingamneni 2020-06-14 13:52:29 -04:00
parent 218bea5a3e
commit df1be01f54
2 changed files with 6 additions and 7 deletions

View file

@ -334,7 +334,7 @@ func (client *Client) SetAccountSettings(settings AccountSettings) {
becameAlwaysOn = (!client.alwaysOn && alwaysOn)
client.alwaysOn = alwaysOn
if autoreplayMissedDisabled {
client.lastSeen = make(map[string]time.Time)
client.lastSeen = nil
}
}
client.accountSettings = settings