From dae8e6ac29c29d8b703f94151a69a3c8755a1de8 Mon Sep 17 00:00:00 2001 From: Rye Date: Sun, 29 Mar 2026 03:29:56 +0200 Subject: [PATCH] fix(PMP, ID): changed pmp id handling and generation --- .changeset/fix_pmp_id_handling.md | 5 +++++ .../features/settings/Persona/PerMessageProfileOverview.tsx | 3 ++- src/app/hooks/useCommands.ts | 4 ++-- .../plugins/pluralkit-handler/PKitCommandMessageHandler.ts | 3 ++- src/app/utils/shortIdGen.ts | 4 ++++ 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .changeset/fix_pmp_id_handling.md create mode 100644 src/app/utils/shortIdGen.ts diff --git a/.changeset/fix_pmp_id_handling.md b/.changeset/fix_pmp_id_handling.md new file mode 100644 index 000000000..77dac71f5 --- /dev/null +++ b/.changeset/fix_pmp_id_handling.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +fix id handling and id generation for Personas diff --git a/src/app/features/settings/Persona/PerMessageProfileOverview.tsx b/src/app/features/settings/Persona/PerMessageProfileOverview.tsx index 6ed0dcef0..7a3ba574a 100644 --- a/src/app/features/settings/Persona/PerMessageProfileOverview.tsx +++ b/src/app/features/settings/Persona/PerMessageProfileOverview.tsx @@ -6,6 +6,7 @@ import { } from '$hooks/usePerMessageProfile'; import { useEffect, useState } from 'react'; import { Box, Button, Text } from 'folds'; +import { generateShortId } from '$utils/shortIdGen'; import { PerMessageProfileEditor } from './PerMessageProfileEditor'; /** @@ -36,7 +37,7 @@ export function PerMessageProfileOverview() {