remove some unnecessary data from account data

This commit is contained in:
7w1 authored and niki committed 2026-06-29 17:50:42 +03:00
1 parent 5117d56f28
commit 2f9be8c82f
2 files changed
+11 -1

No files matched your search

@@ -226,7 +226,16 @@ export function GifItem({
setFavorited(true);
await mx
.setAccountData(MATRIX_SABLE_UNSTABLE_FAVORITE_GIFS, {
gifs: [...favoritedContent.gifs, { ...gif, url: mxcUrl }],
gifs: [
...favoritedContent.gifs,
{
title: gif.title,
url: mxcUrl,
width: gif.width,
height: gif.height,
size: gif.size,
},
],
})
.catch(() => setFavorited(false));
} else {
@@ -430,6 +430,7 @@ export const ImageContent = as<'div', ImageContentProps>(
url: url,
width: imageW,
height: imageH,
size: info?.size,
},
],
})