fix: show channel broadcast messages

This commit is contained in:
illusia committed 2026-09-03 16:08:51 +08:00
1 parent 83a8fd0d5a
commit 767bdea018
3 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -937,7 +937,7 @@ const visibleChatMessages = computed(() => {
if (chatTab.value === "private") return chatMessages.filter((message) => message.scope === "private" && message.conversationId === String(privateClientId.value));
if (chatTab.value !== "channel") return [];
const channelId = currentChannel.value?.id;
return chatMessages.filter((message) => message.scope === "channel" && (!message.targetId || !channelId || message.targetId === channelId));
return chatMessages.filter((message) => message.scope === "channel" && (!message.targetId || message.targetId === "0" || !channelId || message.targetId === channelId));
});
const chatTabLabel = computed(() => chatTab.value === "channel" ? t("textChannel") : chatTab.value === "server" ? t("serverChat") : chatTab.value === "private" ? t("privateMessage") : t("eventLog"));