Add files via upload
This commit is contained in:
@@ -453,17 +453,14 @@ function handleFrameMessage(event) {
|
|||||||
const store = getSummaryStore();
|
const store = getSummaryStore();
|
||||||
if (!store) break;
|
if (!store) break;
|
||||||
const lastSummarized = store.lastSummarizedMesId ?? -1;
|
const lastSummarized = store.lastSummarizedMesId ?? -1;
|
||||||
// 无论是否有总结,都保存用户的偏好设置
|
if (lastSummarized < 0) break;
|
||||||
store.hideSummarizedHistory = !!data.enabled;
|
store.hideSummarizedHistory = !!data.enabled;
|
||||||
saveSummaryStore();
|
saveSummaryStore();
|
||||||
// 只有有总结时才执行隐藏/显示命令
|
if (data.enabled) {
|
||||||
if (lastSummarized >= 0) {
|
const range = calcHideRange(lastSummarized);
|
||||||
if (data.enabled) {
|
if (range) executeSlashCommand(`/hide ${range.start}-${range.end}`);
|
||||||
const range = calcHideRange(lastSummarized);
|
} else {
|
||||||
if (range) executeSlashCommand(`/hide ${range.start}-${range.end}`);
|
executeSlashCommand(`/unhide 0-${lastSummarized}`);
|
||||||
} else {
|
|
||||||
executeSlashCommand(`/unhide 0-${lastSummarized}`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user