chore: format + fix telegram thread ids
This commit is contained in:
1 parent
5599603bdb
commit
4291d56e0b
8 files changed
+90
-65
No files matched your search
@@ -29,7 +29,12 @@ export function normalizeSlackChannelType(
|
||||
channelId?: string | null,
|
||||
): SlackMessageEvent["channel_type"] {
|
||||
const normalized = channelType?.trim().toLowerCase();
|
||||
if (normalized === "im" || normalized === "mpim" || normalized === "channel" || normalized === "group") {
|
||||
if (
|
||||
normalized === "im" ||
|
||||
normalized === "mpim" ||
|
||||
normalized === "channel" ||
|
||||
normalized === "group"
|
||||
) {
|
||||
return normalized;
|
||||
}
|
||||
return inferSlackChannelType(channelId) ?? "channel";
|
||||
|
||||
Reference in new issue
Block a user