chore: oxfmt
This commit is contained in:
committed by
Vignesh
parent
30098b04d7
commit
5915d479dc
@@ -207,12 +207,7 @@ function deriveChatTypeFromSessionKey(sessionKey?: string): "direct" | "group" |
|
||||
if (!parsed?.rest) {
|
||||
return "direct";
|
||||
}
|
||||
const tokens = new Set(
|
||||
parsed.rest
|
||||
.toLowerCase()
|
||||
.split(":")
|
||||
.filter(Boolean),
|
||||
);
|
||||
const tokens = new Set(parsed.rest.toLowerCase().split(":").filter(Boolean));
|
||||
if (tokens.has("channel")) {
|
||||
return "channel";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user