3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-06-27 09:07:36 +02:00

Merge pull request from slingamn/followup

fix disabling of autoreplay-missed
This commit is contained in:
Shivaram Lingamneni 2020-06-18 22:54:51 -07:00 committed by GitHub
commit 640e7a42b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -334,7 +334,8 @@ func (client *Client) SetAccountSettings(settings AccountSettings) {
becameAlwaysOn = (!client.alwaysOn && alwaysOn) becameAlwaysOn = (!client.alwaysOn && alwaysOn)
client.alwaysOn = alwaysOn client.alwaysOn = alwaysOn
if autoreplayMissedDisabled { if autoreplayMissedDisabled {
client.lastSeen = nil // clear the lastSeen entry for the default session, but not for device IDs
delete(client.lastSeen, "")
} }
} }
client.accountSettings = settings client.accountSettings = settings