Add files via upload

This commit is contained in:
RT15548
2026-01-21 12:00:37 +08:00
committed by GitHub
parent 3a42b61d4d
commit 67872c20b9

View File

@@ -453,15 +453,18 @@ function handleFrameMessage(event) {
const store = getSummaryStore();
if (!store) break;
const lastSummarized = store.lastSummarizedMesId ?? -1;
if (lastSummarized < 0) break;
// 无论是否有总结,都保存用户的偏好设置
store.hideSummarizedHistory = !!data.enabled;
saveSummaryStore();
// 只有有总结时才执行隐藏/显示命令
if (lastSummarized >= 0) {
if (data.enabled) {
const range = calcHideRange(lastSummarized);
if (range) executeSlashCommand(`/hide ${range.start}-${range.end}`);
} else {
executeSlashCommand(`/unhide 0-${lastSummarized}`);
}
}
break;
}