chore: oxfmt

This commit is contained in:
Vignesh Natarajan
2026-02-02 21:19:13 -08:00
committed by Vignesh
parent 30098b04d7
commit 5915d479dc

View File

@@ -207,12 +207,7 @@ function deriveChatTypeFromSessionKey(sessionKey?: string): "direct" | "group" |
if (!parsed?.rest) { if (!parsed?.rest) {
return "direct"; return "direct";
} }
const tokens = new Set( const tokens = new Set(parsed.rest.toLowerCase().split(":").filter(Boolean));
parsed.rest
.toLowerCase()
.split(":")
.filter(Boolean),
);
if (tokens.has("channel")) { if (tokens.has("channel")) {
return "channel"; return "channel";
} }