From a96b5954cb3134166b67326c7c6f341b2d861d90 Mon Sep 17 00:00:00 2001 From: Rye Date: Thu, 12 Mar 2026 22:26:27 +0100 Subject: [PATCH] docs: adding documentation about the current limitations of quick adding stickers in case of them being encrypted --- .changeset/disable_quick_add_for_encrypted_sticker.md | 6 ++++++ src/app/features/room/message/Message.tsx | 1 + src/app/utils/addStickerToDefaultStickerPack.ts | 1 + 3 files changed, 8 insertions(+) create mode 100644 .changeset/disable_quick_add_for_encrypted_sticker.md diff --git a/.changeset/disable_quick_add_for_encrypted_sticker.md b/.changeset/disable_quick_add_for_encrypted_sticker.md new file mode 100644 index 00000000..5b8df4d4 --- /dev/null +++ b/.changeset/disable_quick_add_for_encrypted_sticker.md @@ -0,0 +1,6 @@ +--- +sable: patch +--- + +disabling quick add for encrypted sticker, this mitigates the issue of being unable to use quick to add encrypted sticker + \ No newline at end of file diff --git a/src/app/features/room/message/Message.tsx b/src/app/features/room/message/Message.tsx index 3059f80f..877ff535 100644 --- a/src/app/features/room/message/Message.tsx +++ b/src/app/features/room/message/Message.tsx @@ -825,6 +825,7 @@ function MessageInternal( )} + {/* Only show "Add to User Sticker Pack" if the sticker isn't already in the default pack and isn't encrypted */} {isStickerMessage && mEvent.getContent().url && !doesStickerExistInDefaultPack(mx, mEvent.getContent().url) && ( diff --git a/src/app/utils/addStickerToDefaultStickerPack.ts b/src/app/utils/addStickerToDefaultStickerPack.ts index a0c252b0..a9715a05 100644 --- a/src/app/utils/addStickerToDefaultStickerPack.ts +++ b/src/app/utils/addStickerToDefaultStickerPack.ts @@ -4,6 +4,7 @@ import { IImageInfo } from '$types/matrix/common'; import { MatrixClient } from 'matrix-js-sdk'; // Utility function to add a sticker to the default sticker pack +// For now this only works for unencrypted stickers export async function addStickerToDefaultPack( mx: MatrixClient, shortcode: string,