refactor: drop legacy room chatType

This commit is contained in:
Peter Steinberger committed 2026-01-17 05:46:40 +00:00
1 parent 07a3db153d
commit 8b42902cee
18 files changed
+19 -42

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ const formatAge = (ms: number | null | undefined) => {
function classifyKey(key: string, entry?: SessionEntry): SessionRow["kind"] {
if (key === "global") return "global";
if (key === "unknown") return "unknown";
if (entry?.chatType === "group" || entry?.chatType === "channel" || entry?.chatType === "room") {
if (entry?.chatType === "group" || entry?.chatType === "channel") {
return "group";
}
if (key.startsWith("group:") || key.includes(":group:") || key.includes(":channel:")) {
+1 -1
View File
@@ -19,7 +19,7 @@ import type { HeartbeatStatus, SessionStatus, StatusSummary } from "./status.typ
const classifyKey = (key: string, entry?: SessionEntry): SessionStatus["kind"] => {
if (key === "global") return "global";
if (key === "unknown") return "unknown";
if (entry?.chatType === "group" || entry?.chatType === "channel" || entry?.chatType === "room") {
if (entry?.chatType === "group" || entry?.chatType === "channel") {
return "group";
}
if (key.startsWith("group:") || key.includes(":group:") || key.includes(":channel:")) {