瀏覽代碼

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…
取消
儲存