Pārlūkot izejas kodu

fix disabling of autoreplay-missed

tags/v2.2.0-rc1
Shivaram Lingamneni 4 gadus atpakaļ
vecāks
revīzija
ca79da87b1
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      irc/getters.go

+ 2
- 1
irc/getters.go Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt