소스 검색

fix disabling of autoreplay-missed

tags/v2.2.0-rc1
Shivaram Lingamneni 4 년 전
부모
커밋
ca79da87b1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      irc/getters.go

+ 2
- 1
irc/getters.go 파일 보기

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

Loading…
취소
저장