chore: format + fix telegram thread ids

This commit is contained in:
Peter Steinberger
2026-01-15 09:13:13 +00:00
parent 5599603bdb
commit 4291d56e0b
8 changed files with 90 additions and 65 deletions

View File

@@ -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";