docs: adding documentation about the current limitations of quick adding stickers in case of them being encrypted

This commit is contained in:
Rye committed 2026-03-12 22:26:27 +01:00
1 parent 58808ebccc
commit a96b5954cb
3 files changed
+8

No files matched your search

@@ -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
@@ -825,6 +825,7 @@ function MessageInternal(
</Text>
</MenuItem>
)}
{/* 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) && (
@@ -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,