完善游戏通知文案与屏蔽逻辑
This commit is contained in:
@@ -50,12 +50,19 @@ function appendFishingMessage(html) {
|
||||
return;
|
||||
}
|
||||
|
||||
const blockedSet = window.chatState?.blockedSystemSenders;
|
||||
const isBlocked = blockedSet instanceof Set && blockedSet.has("钓鱼播报");
|
||||
const line = document.createElement("div");
|
||||
line.className = "msg-line";
|
||||
line.dataset.blockKey = "钓鱼播报";
|
||||
if (isBlocked) {
|
||||
line.dataset.blockHidden = "1";
|
||||
line.style.display = "none";
|
||||
}
|
||||
line.innerHTML = html;
|
||||
container.appendChild(line);
|
||||
|
||||
if (shouldAutoScroll()) {
|
||||
if (!isBlocked && shouldAutoScroll()) {
|
||||
container.scrollTop = container.scrollHeight;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user