forked from External/ergo
simplify lastSeen handling
This commit is contained in:
parent
218bea5a3e
commit
df1be01f54
2 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue