fix: update ui ed25519 + bluebubbles actions

This commit is contained in:
Peter Steinberger
2026-01-20 13:43:16 +00:00
parent b56e9964f5
commit a81989048d
2 changed files with 11 additions and 6 deletions

View File

@@ -20,10 +20,15 @@ export const BLUEBUBBLES_ACTIONS = {
sendAttachment: { gate: "sendAttachment" },
} as const satisfies Partial<Record<ChannelMessageActionName, BlueBubblesActionSpec>>;
const BLUEBUBBLES_ACTION_SPECS = BLUEBUBBLES_ACTIONS as Record<
keyof typeof BLUEBUBBLES_ACTIONS,
BlueBubblesActionSpec
>;
export const BLUEBUBBLES_ACTION_NAMES = Object.keys(
BLUEBUBBLES_ACTIONS,
) as ChannelMessageActionName[];
) as (keyof typeof BLUEBUBBLES_ACTIONS)[];
export const BLUEBUBBLES_GROUP_ACTIONS = new Set<ChannelMessageActionName>(
BLUEBUBBLES_ACTION_NAMES.filter((action) => BLUEBUBBLES_ACTIONS[action]?.groupOnly),
BLUEBUBBLES_ACTION_NAMES.filter((action) => BLUEBUBBLES_ACTION_SPECS[action]?.groupOnly),
);