chore: oxfmt
parent
30098b04d7
commit
5915d479dc
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue