mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 04:40:32 +00:00
refactor: dedupe lowercased readers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { ReactionTypeEmoji } from "@grammyjs/types";
|
||||
import { DEFAULT_EMOJIS, type StatusReactionEmojis } from "openclaw/plugin-sdk/channel-feedback";
|
||||
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
|
||||
import type { TelegramChatDetails, TelegramGetChat } from "./bot/types.js";
|
||||
|
||||
type StatusReactionEmojiKey = keyof Required<StatusReactionEmojis>;
|
||||
@@ -114,7 +115,7 @@ const STATUS_REACTION_EMOJI_KEYS: StatusReactionEmojiKey[] = [
|
||||
];
|
||||
|
||||
function normalizeEmoji(value: string | undefined): string | undefined {
|
||||
const trimmed = value?.trim();
|
||||
const trimmed = normalizeOptionalString(value);
|
||||
return trimmed ? trimmed : undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user